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 :/
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now