// . Description: .
// . Change from dead monster reborn to help for some . .
// . minutes. . .
// . A percentage is 5% and can be changed.
// . a permanent variable is generated with the time of .
// . 'validity' of the monster, so only the char already has .
// . a monstrous helper, he won't get another one and that one.
// . 'expiration' time is 5 minutes + rand(120) being .
// . so a time between 5 and 7 minutes - monster level, .
// . that is, the higher the level of the monstrous, the less.
// . 'expiration' time it will have.
// . Not valid for MvP/Boss, monsters that don't attack. .
// . and they don't move and they are WoE monsters .
// .----------------------------------------------------------.
- script Mob Helper -1,{
OnNPCKillEvent:
if(rand(0,10000) > 500) end; //5% para conseguir
if(mkTimed && gettimetick(2) <= mkTimed) end; //Checa tempo
set @MobMode, getmonsterinfo(killedrid,MOB_MODE);
if(!(@MobMode & 1)) end; //Mob não se move
if(!(@MobMode & 128)) end; //Mob não ataca
if(@MobMode & 32) end; //Mob MvP/Boss
set @WoE[0],1288|1285|1830|1949|1950|1286|1287|1899|1829; //WoE IDs
for(set @n,0; @n < getarraysize(@WoE); set @n,@n+1){ if(@WoE[@n] == killedrid){ end; } } //WoE
set @nTime, (300+rand(0,120))-getmonsterinfo(killedrid,1);
summon "Ajudante "+getmonsterinfo(killedrid,0), killedrid, @nTime;
set mkTimed, gettimetick(2)+@nTime+rand(0,60);
message strcharinfo(0),"["+getmonsterinfo(killedrid,0)+"] Hello "+strcharinfo(0)+" I will help you for a few minutes!";
end;
}
What's up guys!!
Guys, could anyone help me with this script?
it simply does not present any errors in the emulator.
It shows the message that mob will appear to help and but it doesn't appear, could anyone tell me how I can fix this?
Question
Yukaiii
What's up guys!!
Guys, could anyone help me with this script?
it simply does not present any errors in the emulator.
It shows the message that mob will appear to help and but it doesn't appear, could anyone tell me how I can fix this?
Link to comment
Share on other sites
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.