Jump to content

Question

Posted

Γειας σας, θα ηθελα να ρωτησω τι 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

  • 0
Posted

δεν ξερω αν λειτουργει αυτο που θα σου πω..

αλλα δοκιμασε:

 getPlayer().isInCombat())

αλλιως βαλε:

getPvpFlag() > 0

  • 0
Posted

Ευχαριστω παρα πολυ φιλε , ο δευτερος κωδικος δουλευει 100% ο πρωτος δεν δουλευει σε εμενα

αλλα μπορει να εχω κανει και εγω κατι λαθος δεν ξερω. Και Παλι ευχαριστω.

  • 0
Posted

Ευχαριστω παρα πολυ φιλε , ο δευτερος κωδικος δουλευει 100% ο πρωτος δεν δουλευει σε εμενα

αλλα μπορει να εχω κανει και εγω κατι λαθος δεν ξερω. Και Παλι ευχαριστω.

 

Efoson lithike to problima sou, to kanw lock.

 

Ean xreiastei na rotiseis kati allo, kane mou ena pm na to kseklidoso.

Guest
This topic is now closed to further replies.


  • Posts

    • Hello, I'm looking for classic client for l2 gold or l2 gold weapons for classic 166 version
    • Good afternoon   ⚡CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER⚡ ⚡PREMIUM QUALITY ACCOUNTS, INSTANT DELIVERY, FREE CONSULTATIONS, RELIABLE WORK⚡   ✔ Ready accounts ✔   BUSINESS ACCOUNTS ☟ Blackcatcard Business LV, Volet com (AdvCash) Business EU, Xapo Bank Business EU, Finom Business, PayPal Business, Payset Business, Stripe Business, Payoneer Business EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Mistertango Business LV   BANKS, NATIONAL BANKS ☟ Ceska Sporitelna, KASIKORNBANK, BBVA, CommerzBank, Santander, Kaspi Bank, AlfaBank, Raiffeisen, mBank, Paribas, Bereke Bank, Freedom Bank   PAYMENT SYSTEMS ☟ Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, 4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava   CRYPTOEXCHANGE ☟ Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken   Contact via telegram - in the first post of the topic!
    • Sell "Amoral" Classic Armor and Weapon.   Custom "Amoral" Draconic Set YouTube Custom "Amoral" Imperial Set YouTube Custom "Amoral" Dark Crystal Robe YouTube Custom "Amoral" Classic S-Grade Weapon YouTube My Contacts Telegram  
    • Greetings to all! I offer a scope for client modification. What services do I provide: 1) Transfer of any Weapon, Armor, Accessories, from any chronicles to yours. 2) Creating exclusive add-ons. 3) Repainting of Armor, Weapons аnd Accessories. 4) Packing the icons you need and other things. 5) Creating NPCs with and without effects. 6) Create Monsters and Raid bosses, with effects and sounds. 7) HTLM NPC design. Creating Buttons and other things for your project. And much more If you have any questions, write in  Telegram. You can find some of the works here  YouTube
  • Topics

×
×
  • Create New...