Jump to content
  • 0

Customized Payed Warper


Question

Posted

Hi can I request for a payed warper via zeny? E.G. warper can only be used if NPC is payed by 5k. This is applicable after the warp.

 

Also, the maps included are the maps that are not quest maps.

 

Is it possible? Thanks!

3 answers to this question

Recommended Posts

Posted

After:

function Go {

Add:
	set .@price,5000;
	if(Zeny<.@price){mes "I'm sorry you don't have enought Zeny to warp, please try again later."; close;}
	set Zeny,Zeny-.@price;
After:

function Pick {

Add:
	set .@price,5000;
	if(Zeny<.@price){mes "I'm sorry you don't have enought Zeny to warp, please try again later."; close;}
	set Zeny,Zeny-.@price;
  • Upvote 2
Posted (edited)

Add this at begining of your script

 

set .@Price,5000;    // Zeny required for warp

 

 

    if (.@Price) {
        message strcharinfo(0),"Warping costs "+.@Price+" Zeny.";
        if (Zeny < .@Price) end;
        //Warping script here
        set Zeny, Zeny-.@Price; // Write this BEFORE teleport
    }
Edited by Shakto

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