Jump to content
  • 0

Npc item only 1 time


Noctis

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

Whats the script for the npc give us an item only 1 time?( or if i already have the item he dont give me another one) My actual script if i keep talking with him he keeps giving me the item

Edited by Exmas
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

payon,163,127,3    script  	OneTimeItemGiver	790,{
if( !#onetimeitem ){
set #onetimeitem,1;
mes "Hie there!!";
mes "you here for the item??.";
next;
mes "Here you go! Enjoy!";
getitem youritemidhere,quantity ;
//getitembound << use this to give bounded items
}else{
mes "You already claimed your item.";
}
close;
OnInit:
	waitingroom "Item Giver!",0;
	end;
}

 

Edited by Cyro
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

You can just use freebies script or reward giving script... Just try searching

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

10 hours ago, Cyro said:

You can just use freebies script or reward giving script... Just try searching

I searched " ragnarok script npc that give item only 1 time" and didnt find anything. Only found an account bound item script

 

9 hours ago, Cyro said:

payon,163,127,3    script  	OneTimeItemGiver	790,{
if( !#onetimeitem ){
set #onetimeitem,1;
mes "Hie there!!";
mes "you here for the item??.";
next;
mes "Here you go! Enjoy!";
getitem youritemidhere,quantity ;
//getitembound << use this to give bounded items
}else{
mes "You already claimed your item.";
}
close;
OnInit:
	waitingroom "Item Giver!",0;
	end;
}

 

Thanks man :D

Edited by Exmas
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

On 1/16/2017 at 6:11 PM, Noctis said:

I searched " ragnarok script npc that give item only 1 time" and didnt find anything. Only found an account bound item script

 

Thanks man :D

excellent script, but you explain to me how the script makes you see that the account has already obtained the gift? register it in the database?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

On 1/16/2017 at 12:11 PM, Noctis said:

I searched " ragnarok script npc that give item only 1 time" and didnt find anything. Only found an account bound item script

 

Thanks man :D

its this 

if( !#onetimeitem ){
set #onetimeitem,1;

 

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