Hi,I have a problemwitha modified scriptfrom me,in practicethe scriptworks, howeverthe problem isthat the event whichstartsOnMinute30:,does not releasetheitemsanddoes not announcewhen killedthe treasure.I do not knowifI wasclear enough, sorry formy english
prontera,124,197,7 script Treasure Box Summoner 856,{
mes "[ Treasure Box Event ]";
mes "Hello! I'm trying to improve my ability to summon monsters.. and by doing so, I've been refining on how to summon Treasure Boxes.";
if( $@tboxevent == 0 )
{
mes "Sadly, I've ^ff0000failed^000000 to summon last time.";
}
else
{
mes "I was able to successfully summon last time!";
}
if( $@tboxsevent == 0 ){
mes "Sadly, I've ^ff0000failed^000000 to summon last time.";
}
else
{
mes "I was able to successfully summon last time!";
}
close;
OnMinute00: // Change to whatever you want the event to start
set $@tboxevent, rand(2);
if ( $@tboxevent != 0 ){
announce "A rare Treasure Box will be spawned in 30 seconds in Prontera.",0;
sleep2 30000;
monster "prontera",0,0,"Treasure Box",1845,10,"Treasure Box Summoner::OnTBoxKilled";
end;
} else {
end;
}
end;
OnTBoxKilled:
announce "The rare Treasure Box has been found and destroyed by "+strcharinfo(0)+"!", bc_all;
getitem 7539,1; // Change your prize here
end;
OnMinute30: // Change to whatever you want the event to start
set $@ran, rand(1,9);
if ($@ran == 9) set $@jmpmap$,"hugel";
if ($@ran == 8) set $@jmpmap$,"yuno";
if ($@ran == 7) set $@jmpmap$,"comodo";
if ($@ran == 6) set $@jmpmap$,"aldebaran";
if ($@ran == 5) set $@jmpmap$,"izlude";
if ($@ran == 4) set $@jmpmap$,"payon";
if ($@ran == 3) set $@jmpmap$,"geffen";
if ($@ran == 2) set $@jmpmap$,"morocc";
if ($@ran == 1) set $@jmpmap$,"prontera";
set $@tboxsevent, rand(2);
if ( $@tboxsevent != 0 ){
announce "A rare Treasure Box will be spawned in 30 seconds in "+$@jmpmap$+" .",0;
sleep2 80000;
monster $@jmpmap$,0,0,"Treasure Box",1845,5,"Treasure Summoner::OnTBoxsKilled";
end;
} else {
end;
}
end;
OnTBoxsKilled:
announce "The rare Treasure Box has been found and destroyed by "+strcharinfo(0)+"!", bc_all;
getitem 50040,1; // Change your prize here
end;
}
Question
Valcars
Hi, I have a problem with a modified script from me, in practice the script works, however the problem is that the event which starts OnMinute30 :, does not release the items and does not announce when killed the treasure. I do not know if I was clear enough, sorry for my english
Where did I wrong?
Edited by Valcars4 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.