Jump to content
  • 0
Sign in to follow this  
leloush

Hello, Pay zeny and item to warp in (map)

Question

Hello, Hercules

 

 

i would like to request an npc if you dont mind hehe

this is what i would like to have

 

 

npc that will require you to pay him a zeny and item

and then the npc will warp you into the (designated map)

 

 

 

p.s. thank you :D

more power

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

sevenzz23, on 23 Nov 2013 - 21:47, said:

why dont you use Quest Warper?

thank you.

but can i have a simple and short script.

 

 

 

like for example

npctestwarper

convers with the npc

and the npc will ask and check for zeny and the coresponding item if the character have this (two)

the npc will warp him to the designated map (customized) (1 map ) (example: gld_dun01)

because im planning to make a npc for example bossnia with a time.

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0
-	script	Warper	-1,{	set .@price,1000;	// Zeny required for warp	set .@item,501;	// Item Required for warp	mes "["+strnpcinfo(1)+"]";	mes "Hi "+strcharinfo(0);	if (.@item) {		mes "Item required ^ff0000"+getitemname(.@item)+"^000000.";		if (!countitem(.@item)) close;		delitem getitemname(.@item),1;	}	if (.@price) {		mes "Warp costs ^ff0000"+.@price+" Zeny.^000000";		if (Zeny < .@price) close;		if(select("^0055FFWarp^000000:^777777Cancel^000000") == 2) close;		set Zeny, Zeny-.@price;	}		warp "prontera",150,150;}

or you can add this to your warper.txt

Share this post


Link to post
Share on other sites
  • 0

 

-	script	Warper	-1,{	set .@price,1000;	// Zeny required for warp	set .@item,501;	// Item Required for warp	mes "["+strnpcinfo(1)+"]";	mes "Hi "+strcharinfo(0);	if (.@item) {		mes "Item required ^ff0000"+getitemname(.@item)+"^000000.";		if (!countitem(.@item)) close;		delitem getitemname(.@item),1;	}	if (.@price) {		mes "Warp costs ^ff0000"+.@price+" Zeny.^000000";		if (Zeny < .@price) close;		if(select("^0055FFWarp^000000:^777777Cancel^000000") == 2) close;		set Zeny, Zeny-.@price;	}		warp "prontera",150,150;}

or you can add this to your warper.txt

thank you so much..

more power to hercules and also you guys.. /no1

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.