Jump to content
  • 0

Easy Script help?


Rocky Road

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

Guys i know this is an easy script for you but please can anyone give me some easy script like this,,

 

An NPC that will ask for an item to a player to trade with his(NPC) item? 

 

can anyone give me some of it? thanks

Link to comment
Share on other sites

2 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,150,165,4 script huh 909,{

set .@trade, 512;

set .@tradeamt, 1;

set .@get, 531;

set .@get, 1;

mes "[trade things with me!]";

mes "Hiya! do you have any ^0000FF"+getitemname(.@trade)+"^000000?";

mes "Wanna trade with an ^0000FF"+getitemname(.@get)+"^000000?";

if (select("Yes:No")) == 2 {

next;

mes "[trade things with me!]";

mes "Okay. Bye!";

close;

}

if (!countitem(.@trade)) {

next;

mes "[trade things with me!]";

mes "Umm, but you don't have the ^0000FF"+getitemname(.@trade)+"^000000.";

mes "Come back to me when you have one!";

close;

}

mes "[trade things with me!]";

mes "Off we go!";

delitem .@trade, .@tradeamt;

getitem .@get, .@getamt;

next;

mes "[trade things with me!]";

mes "Have a nice day!";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

prontera,150,165,4	script	huh	909,{
	set .@trade, 512;
	set .@tradeamt, 1;
	set .@get, 531;
	set .@get, 1;
	mes "[trade things with me!]";
	mes "Hiya! do you have any ^0000FF"+getitemname(.@trade)+"^000000?";
	mes "Wanna trade with an ^0000FF"+getitemname(.@get)+"^000000?";
	if (select("Yes:No")) == 2 {
		next;
		mes "[trade things with me!]";
		mes "Okay. Bye!";
		close;
	}
	if (!countitem(.@trade)) {
		next;
		mes "[trade things with me!]";
		mes "Umm, but you don't have the ^0000FF"+getitemname(.@trade)+"^000000.";
		mes "Come back to me when you have one!";
		close;
	}
	mes "[trade things with me!]";
	mes "Off we go!";
	delitem .@trade, .@tradeamt;
	getitem .@get, .@getamt;
	next;
	mes "[trade things with me!]";
	mes "Have a nice day!";
	close;
}

WOW THANKS!!

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