Jump to content
  • 0

Npc item only 1 time


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
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
  • 0
Posted (edited)
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
  • 0
Posted
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?

  • 0
Posted
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;

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...