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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..