y0h4ne5 Posted July 10, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 7 Reputation: 0 Joined: 09/09/13 Last Seen: June 4, 2020 Share Posted July 10, 2016 (edited) 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.. Edited July 10, 2016 by Emistry use codebox Quote Link to comment Share on other sites More sharing options...
0 y0h4ne5 Posted July 11, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 7 Reputation: 0 Joined: 09/09/13 Last Seen: June 4, 2020 Author Share Posted July 11, 2016 Hi 101,82 is not a correct cell for the map iz_int02 so the npc 'Freebies' can't be placed. Since the one in prontera is a duplicate of this one, it also can't appear. Hi Kurofly, thanks for replying... Btw, im already found the problem, it takes me an hour to search it.. on Renewal server, all novice goes directly into map iz_int01, iz_int02, iz_int03, and so on... thats why sometimes this npc appear and sometimes dissapear when im creating a new character.. Quote Link to comment Share on other sites More sharing options...
0 Kurofly Posted July 10, 2016 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 283 Reputation: 31 Joined: 07/08/14 Last Seen: January 15, 2022 Share Posted July 10, 2016 Hi 101,82 is not a correct cell for the map iz_int02 so the npc 'Freebies' can't be placed. Since the one in prontera is a duplicate of this one, it also can't appear. Quote Link to comment Share on other sites More sharing options...
Question
y0h4ne5
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:
Please help, thank you..
Edited by Emistryuse codebox
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.