Jump to content
  • 0

Need help for this script, sometimes this NPC appear sometimes not...


y0h4ne5

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

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..  /hmm

 

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 by Emistry
use codebox
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

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..  /hmm  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...