Jump to content
  • 0

R>NPC Ask for certain item to trade


chromus28

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

Hi guys!! Sorry for asking this npc again but i cannot find my old post before when i asked this npc, Please can anyone give me again this kind of NPC "The NPC will ask for a certain item to trade?" its a simple NPC like he will talk what kind of items he need to trade for his Blah Blah Blah item then after that when you trade your item to his item he will like "Oh thanks you can now be a superman!" please can give me some of this npc again plss??

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

prontera,148,170,6	script	MVP Ladder	891,{
	mes "Hi! wanna be superman?";
	mes "You should be superman.";
	mes "Let me check your inventory";
	next;
	if (!countitem(512)) {
		mes "You don't have any apple with you";
		mes "You can't be superman. bye";
		close;
	}
        delitem 512,1;
	mes "Becoommee... SUPERMAANN!!";
	mes "lol jk";
	close;
}

will look for an apple. if found, delete

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

will look for an apple. if found, delete

 

wow thanks!!

 

Edit:

uhmm where is the trade item script here?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

prontera,148,170,6	script	MVP Ladder	891,{
	mes "Hi! wanna be superman?";
	mes "You should be superman.";
	mes "Let me check your inventory";
	next;
	if (!countitem(512)) {
		mes "You don't have any apple with you";
		mes "You can't be superman. bye";
		close;
	}
        delitem 512,1;
	mes "Becoommee... SUPERMAANN!!";
	mes "lol jk";
	close;
}

 

Line 6 checks if the player has at least 1 apple. If he/she does it will delete 1 apple from the player's inventory (line 11).

 

If you want the player to be given a different item add

getitem <item_id>,<quantity>;
after line 11.
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...