I've been trying to create a system wich in a 2x1, 3x1, 4x1 (etc..) situation, mobers wil receive a debuff like decrease agi.
This is an example made by chat gpt/deep seek. This one does not show any problems on rAthena, but no working at all.
Quote
- script AntiGankSystem -1,{
OnPCAttackEvent:
if (strcharinfo(3) == "guild_vs3") { // Aplica apenas nesses mapas
set .targetID, getcharid(0);
set .attackers, 0;
// Obtém lista de jogadores próximos no mesmo mapa PvP
getmapxy .@map$, .@x, .@y, 0;
setarray .@players, getmapunits(BL_PC, .@map$);
for (set .@i, 0; .@i < getarraysize(.@players); set .@i, .@i + 1) {
if (getcharid(0, .@players[.@i]) != .targetID) {
if (checkvending(.@players[.@i]) == 0) {
set .attackers, .attackers + 1;
}
}
}
// Se houver 2 ou mais atacantes no mesmo alvo, aplica penalidade
if (.attackers >= 2) {
sc_start SC_DECREASEAGI, 10000, 10; // Reduz a velocidade de movimento
}
}
end;
}
Question
serjtk
Hello all,
I've been trying to create a system wich in a 2x1, 3x1, 4x1 (etc..) situation, mobers wil receive a debuff like decrease agi.
This is an example made by chat gpt/deep seek. This one does not show any problems on rAthena, but no working at all.
Could you guys please make some comments?
Thank you.
2 answers 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.