Skip to content

Block Buffer Npc For Players With Karma

Featured Replies

Hello mxc! I want to know how I can prevent players with KARMA, PVP FLAG and COMBAT MODE from receiving buff/heals from the buffer npc.

I use a script buffer and I tried to edit the script and import some information from core like:

if st.player.getPvpFlag() > 0 :
  return showText(st,"Info","You cannot buff in this area! <font color=\"800080\">flagged!</font><br>Try again later!","False","Return","main")

elif st.player.getKarma() > 0 :
return showText(st,"Info","You cannot buff in this area! <font color=\"800080\">flagged!</font><br>Try again later!","False","Return","main")

elif st.player.isInCombat() :
  return showText(st,"Info","You cannot buy buffs while in combat mode!<br>Try again later!","False","Return","main")

else: return rebuildMainHtml(st)

 But that doesnt work, so I need some help

Edited by tiguz

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.