Hi all, i have some script that give new player some freebies, the problem is:
1. Sometimes this NPC appear, sometimes not..
2. When testing by creating new char many times, this npc are dissappear...
3. No error log at all on SVN..
4. I dont know source of error..
Im using latest Rathena version..
here script:
iz_int02,101,82,5 script Freebies 718,{
if( !Freebies ) {
set Freebies,1;
mes "Welcome...this is your gift...";
//kasih items
//getitem 569,300; // << Novice Potion
//kasih rental items
//Contoh: To rent out a red potion for 7 days you would use the following
//Format rentitem <item ID>,<duration>;
//rentitem 501,604800;
//getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
//getitem2 2424,1,1,7,0,0,0,0,0;
//rentitem2 <item id>,<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;
//set Zeny, Zeny + 1000000; // Give 1000000 Zeny
getitem 11567,300; //Novice Potion
getitem 12323,100; //Fly Wing
getitem 12324,5; //Butterfly Wing
rentitem2 1208,604800*2,1,10,0,4043,4043,4043,4043; // Main Gauche +10 & 4 Andre Card (Slot) ,2 weeks expiration
rentitem2 2502,604800*2,1,7,0,4133,0,0,0; // Hood +7 & Raydic Card (Slot) ,2 weeks expiration
rentitem2 2102,604800*2,1,7,0,4003,0,0,0; // Guard +7 & Pupa Card (Slot) ,2 weeks expiration
rentitem2 2402,604800*2,1,7,0,4097,0,0,0; // Shoes +7 & Matry Card (Slot) ,2 weeks expiration
rentitem2 2306,604800*2,1,7,0,4031,0,0,0; // Adventure Suits & Peco Card (Slot) +7 ,2 weeks expiration
rentitem2 2280,604800*2,1,7,0,0,0,0,0; // Sakkat +7 ,2 weeks expiration
rentitem2 2607,604800*2,1,0,0,4064,0,0,0; // Clip & Zerom Card (Slot),2 weeks expiration
rentitem2 2607,604800*2,1,0,0,4064,0,0,0; // Clip & Zerom Card (Slot),2 weeks expiration
close;
} else {
mes "You have claim the Reward already.";
close;
}
OnInit:
waitingroom "Freebies Here",0;
end;
}
lasa_fild01,46,301,5 script Freebies Doram 718,{
if( !Freebies ) {
set Freebies,1;
mes "Welcome...this is your gift...";
//kasih items
//getitem 569,300; // << Novice Potion
//kasih rental items
//Contoh: To rent out a red potion for 7 days you would use the following
//Format rentitem <item ID>,<duration>;
//rentitem 501,604800;
//getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
//getitem2 2424,1,1,7,0,0,0,0,0;
//rentitem2 <item id>,<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;
//set Zeny, Zeny + 1000000; // Give 1000000 Zeny
getitem 11567,300; //Novice Potion
getitem 12323,100; //Fly Wing
getitem 12324,5; //Butterfly Wing
rentitem2 1681,604800*2,1,10,0,4043,4043,4043,4043; // Foxtail +10 & 4 Andre Card (Slot) ,2 weeks expiration
rentitem2 2502,604800*2,1,7,0,4133,0,0,0; // Hood +7 & Raydic Card (Slot) ,2 weeks expiration
rentitem2 2102,604800*2,1,7,0,4003,0,0,0; // Guard +7 & Pupa Card (Slot) ,2 weeks expiration
rentitem2 2402,604800*2,1,7,0,4097,0,0,0; // Shoes +7 & Matry Card (Slot) ,2 weeks expiration
rentitem2 2306,604800*2,1,7,0,4031,0,0,0; // Adventure Suits & Peco Card (Slot) +7 ,2 weeks expiration
rentitem2 2280,604800*2,1,7,0,0,0,0,0; // Sakkat +7 ,2 weeks expiration
rentitem2 2607,604800*2,1,0,0,4064,0,0,0; // Clip & Zerom Card (Slot),2 weeks expiration
rentitem2 2607,604800*2,1,0,0,4064,0,0,0; // Clip & Zerom Card (Slot),2 weeks expiration
next;
warp "prontera", 155, 180;
close;
} else {
mes "You have claim the Reward already.";
next;
warp "prontera", 150, 180;
close;
}
OnInit:
waitingroom "Freebies Here",0;
end;
}
//Duplicate
//iz_int02,101,82,5 duplicate(Freebies) Freebies#bra 718
prontera,163,171,5 duplicate(Freebies) Freebies#br1 718
Please help, thank you..