Jump to content
  • 0

Easy Script help?


Question

Posted

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

2 answers to this question

Recommended Posts

Posted


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;

}

Posted
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!!

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