I have been working on the MonsterRush event that was shared at maxcheaters; but edit it a bit to my own version, but first let me get this clear: I know barely anything from Java, just trying to learn by doing it, and so far it's going ok, but I just don't understand the problems that I have.
Anyway; I edited it like this:
- No lord to protect
- Purpose is to eliminate the 'Wave' of monsters (that are from L2HordeInstance) within time, and when you succeeded, the second wave starts and that up to wave 3.
The problems I have:
- I don't know a good method for when killing a mob (from the L2HordeInstance), it counts something down or up; ah anyway: you will see it in the script, and it is not working :/ Currently: when I kill the first mob, it says the event is over and that I failed...
- The Status also doesn't work; I thought the class could only have one status at the time, but when I try in game it almost denies all checks and just jumps all over the waves, dozens of mobs spawn :/
- When I abort; it doesn't clean up the mobs as it should, I guess
There is alot of crap in it, I know! Double checks, meaningless checks, separate voids while they could be in one, but I just hoped it might work you see; I just tried alot but I keep getting the problems I wrote.
Just some advice what system/method I should use, perhaps with reference to a system in L2j, would be great enough!
It's not just the point that it gets fixed; I would rather want to know how so I can learn more, so pinpointing the problems would be great as well.
Thanks in advance,
LauQ
PS: When it's working I will add alot of useful configs and the usual checks (inOly etc.), and I will share it here... If I can get it to work :/
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
❖Items that are sent by physical delivery are sent using someone else's data. That is, if you are not able to accept the parcel, we will not be able to return it. Please keep this in mind.
READY IN STOCK
PAYMENT SYSTEMS
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, Xapo Bank, 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/ES on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, Moneyjar
CRYPTOEXCHANGE
BINGX com, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken, Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me
BUSINESS ACCOUNTS
Stripe, Payoneer EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Kraken Business Pro, Monzo Business, Vivid Business, Zen Business EU, Millennium Business PL, AirWallex EU/UK, Finom business, PayPal business, Payset business
NATIONAL BANKS / BANKS
BBVA, CommerzBank, ING, Santander, Kaspi Bank, Sberbank, AlfaBank, Tbank, Raiffeisen, mBank, Paribas, Bereke Bank, Kapital Bank
Question
LauQ
Hi,
I have been working on the MonsterRush event that was shared at maxcheaters; but edit it a bit to my own version, but first let me get this clear: I know barely anything from Java, just trying to learn by doing it, and so far it's going ok, but I just don't understand the problems that I have.
Anyway; I edited it like this:
- No lord to protect
- Purpose is to eliminate the 'Wave' of monsters (that are from L2HordeInstance) within time, and when you succeeded, the second wave starts and that up to wave 3.
The problems I have:
- I don't know a good method for when killing a mob (from the L2HordeInstance), it counts something down or up; ah anyway: you will see it in the script, and it is not working :/ Currently: when I kill the first mob, it says the event is over and that I failed...
- The Status also doesn't work; I thought the class could only have one status at the time, but when I try in game it almost denies all checks and just jumps all over the waves, dozens of mobs spawn :/
- When I abort; it doesn't clean up the mobs as it should, I guess
Here is the event script: http://pastebin.com/m6d641ff1
This L2HordeInstance: http://pastebin.com/m728c83cf
There is alot of crap in it, I know! Double checks, meaningless checks, separate voids while they could be in one, but I just hoped it might work you see; I just tried alot but I keep getting the problems I wrote.
Just some advice what system/method I should use, perhaps with reference to a system in L2j, would be great enough!
It's not just the point that it gets fixed; I would rather want to know how so I can learn more, so pinpointing the problems would be great as well.
Thanks in advance,
LauQ
PS: When it's working I will add alot of useful configs and the usual checks (inOly etc.), and I will share it here... If I can get it to work :/
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.