- 0
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..
Question
chripikitis
Γειας σας, θα ηθελα να ρωτησω τι codes πρεπει να βαλει κανεις στο __init__.py του buffer για να μην δινει buffs σε players που βρισκονται σε combat. Εχω προσπαθησει και εχω κανει κατι αντιστιχο με το Karma ...
def onEvent(self,event,st):
htmltext = event
count=st.getQuestItemsCount(ADENA_ID)
if count < 2000000 or st.getPlayer().getKarma() >= 1 :
htmltext = "<html><head><body>I can't Help you<br></body></html>"
else:
st.takeItems(ADENA_ID,0)
st.getPlayer().setTarget(st.getPlayer())
Αλλα το προβλημα ειναι πως δεν ξερω πως να ορισω να μην δινει buffs και σε αυτους που ειναι σε combat
οχι μονο σε αυτους που εχουν Karma >=1 .
Any Idea??
3 answers to this question
Recommended Posts