Jump to content
  • 0

Block Buffer Npc For Players With Karma


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...