Jump to content
  • 0

[solved] Add Zeny Cost to Custom Warper


Question

2 answers to this question

Recommended Posts

  • 1
Posted (edited)

You can add your checks here

function Go {
	set lastwarp$, getarg(0);
	set lastwarpx, getarg(1,0);
	set lastwarpy, getarg(2,0);
	if(BaseLevel > 50 && Zeny < 1000){
    	mes "You need 1,000 Zeny.";
		close;
    }
    if(BaseLevel > 50) Zeny -= 1000;
	warp getarg(0),getarg(1,0),getarg(2,0);
	end;
}

 

Edited by Nyaniverse
edit snippet
  • Upvote 1
  • MVP 1

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