Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

AntiKS System

Newbie Spellweaver
Joined
Dec 21, 2008
Messages
12
Reaction score
0
Wow this is amazing O_O I've never seen anything else like it. It still sucks if you have someone in your map and they just kill monsters that you haven't gotten to yet though.
 
Custom Title Activated
Loyal Member
Joined
Aug 21, 2009
Messages
1,149
Reaction score
598
is this related to moongrams's work ? i heard they had their antiks system too ;)

MoongraMS "AntiKS System" doesn't works like this, and I hope it doesn't. It's more manual.

Really creative idea tho, nice job.
 
Skilled Illusionist
Loyal Member
Joined
Dec 18, 2009
Messages
300
Reaction score
32
Does this works for anyone else? I implemented and It didn't work, activated AntiKS but They can still KS. Might be i added wrong, but Anyone tested yet?
 
Experienced Elementalist
Joined
Jun 8, 2008
Messages
275
Reaction score
4
Does this works for anyone else? I implemented and It didn't work, activated AntiKS but They can still KS. Might be i added wrong, but Anyone tested yet?

lookie at the first line :) in case you tested it on a gm account
PHP:
if (monster.getBelongsToSomeone() && monster.getBelongsTo() != player.getId() && !player.isGM()) {
    player.dropMessage("You cannot hit this monster because it belongs to someone else.");
    continue;
}
if (player.getAntiKS() && antiKS < 3 && monster.getCanBelong() && player.getNumAntiKSMonsters() < 10) {
    monster.setBelongsTo(player);
    antiKS++;
}
 
Skilled Illusionist
Loyal Member
Joined
Dec 18, 2009
Messages
300
Reaction score
32
lookie at the first line :) in case you tested it on a gm account
PHP:
if (monster.getBelongsToSomeone() && monster.getBelongsTo() != player.getId() && !player.isGM()) {
    player.dropMessage("You cannot hit this monster because it belongs to someone else.");
    continue;
}
if (player.getAntiKS() && antiKS < 3 && monster.getCanBelong() && player.getNumAntiKSMonsters() < 10) {
    monster.setBelongsTo(player);
    antiKS++;
}

Nah, I thought of that earlier. I de-gmed myself, and my other testing char.
 
Experienced Elementalist
Joined
Jun 8, 2008
Messages
275
Reaction score
4
honestly i don't have a test character, i implemented it but never really tried it. Ill look into it now
 
Experienced Elementalist
Joined
Jun 8, 2008
Messages
275
Reaction score
4
Wow tried it , doesn't work . I'ma go over the code maybe im missing something thats being stated ;o
 
Skilled Illusionist
Loyal Member
Joined
Dec 18, 2009
Messages
300
Reaction score
32
All these good Comments, but noone tested it? Hmm..
 
Newbie Spellweaver
Joined
Apr 10, 2009
Messages
91
Reaction score
195
Sorry guys, I corrected the error.
I had
Code:
public boolean getBelongsToSomeone() {
        return belongsTo != -1 && endBelong < System.currentTimeMillis();
    }
instead of
Code:
public boolean getBelongsToSomeone() {
        return belongsTo != -1 && endBelong > System.currentTimeMillis();
    }

=( Stupid less/greater than signs.

Also, You should readd the AbstractDealDamageHandler addons, I didn't remember to increment the player's antiKS num, so the player would be able to control as many monsters as he/she wanted.

Correct version is in my first post. Let me know if you find any more bugs.
 
bleh....
Loyal Member
Joined
Oct 15, 2008
Messages
2,898
Reaction score
1,129
lookie at the first line :) in case you tested it on a gm account
PHP:
if (monster.getBelongsToSomeone() && monster.getBelongsTo() != player.getId() && !player.isGM()) {
    player.dropMessage("You cannot hit this monster because it belongs to someone else.");
    continue;
}
if (player.getAntiKS() && antiKS < 3 && monster.getCanBelong() && player.getNumAntiKSMonsters() < 10) {
    monster.setBelongsTo(player);
    antiKS++;
}

Please learn what an Operator is...

!player.isGm() is checking to see if they are NOT a GM. So, that message would only show up if they were not a GM.
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Please learn what an Operator is...

!player.isGm() is checking to see if they are NOT a GM. So, that message would only show up if they were not a GM.
The way I saw the situation, the system wasn't working (the message would be, one way to check if its working), and he told the other person who didn't have it working to check if they were on a GM. So it would make sense if it didn't work, in case they were GM.

Of course that wasn't the case.
 
Experienced Elementalist
Joined
Jun 8, 2008
Messages
275
Reaction score
4
The way I saw the situation, the system wasn't working (the message would be, one way to check if its working), and he told the other person who didn't have it working to check if they were on a GM. So it would make sense if it didn't work, in case they were GM.

Of course that wasn't the case.

someone that can actually read what i said correctly.
 
Back
Top