I am making a script called treasurechest is simple you kill a chest(woechest) and you can get an item or spawn a mimic. But because i am noob scripter i don't know why it doesn't works.
- script cofresdeltesoro -1,0,5{
OnNPCKillEvent:
if (killedrid == 1732) {
set var, rand(1,10);
switch (var) {
case 1:
getitem 909,1;
close;
case 2:
getitem 7126,1;
close;
case 3:
getitem 7300,1;
close;
case 4:
getitem 909,1;
close;
case 5:
getitem 2610,1;
close;
case 6:
getitem 728,1;
close;
case 7:
getitem 909,1;
close;
case 8:
getitem 909,1;
close;
case 9:
getitem 7126,1;
close;
case 10:
atcommand "@monster 1474";
close;
}
break;
} // End if
end;
}
Where is error? or how i can do it?
Console map doesn´t says nothing
The script should be global cause treasure chests will are in many maps.
Question
angelwarrior
Hi guys,
I am making a script called treasurechest is simple you kill a chest(woechest) and you can get an item or spawn a mimic. But because i am noob scripter i don't know why it doesn't works.
Where is error? or how i can do it?
Console map doesn´t says nothing
The script should be global cause treasure chests will are in many maps.
Edited by angelwarrior6 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.