This script is from AnnieRuru
prontera,155,177,5 script kjdhfksdjf 100,2,2,{
if ( .summon_timetick + 10 > gettimetick(2) // 10 seconds delay to summon again
|| mobcount( "this", strnpcinfo(0)+"::Onaa" ) ) end;
monster "this", -1,-1, "--ja--", 1952,1, strnpcinfo(0)+"::Onaa";
.summon_timetick = gettimetick(2);
sleep 5000; // 5 seconds auto-kill this mob
killmonster .map$, strnpcinfo(0) +"::Onaa";
end;
OnInit:
getmapxy .map$, .@x, .@y, 1; // wtf ... killmonster script command doesn't allow "this" variable
Onaa: // prevent server spam error
end;
}
Can anyone edit this for me?
This script is working but when I tried to make another one of this, it doesn't spawn a monster
How this script works:
- It spawns a monster when you step on a cell area
- It doesn't summon another monster when you step on the cell again.
- It has delay before you can spawn a monster again.
What I need:
- To make a multiple script of this (more than one), which spawns different monster each.
- To make the spawn point into a certain coordinate. (not around the NPC)
Ex.
This script is placed at [prontera,155,177]. But monster spawns at [prontera,152,165]
This is the script I tried
StepCellMonster.txt