I'd like to seek assistance with modifying the script so that the town warps will cost 2,000 zeny and the dungeon warps will cost 5,000 zeny. Also I'd like to know how to make it free for VIPs.
I was able to put town warp cost by adding this:
function Go {
if (select("Pay 20k Zeny", "Cancel") == 2) close3;
if (Zeny < 20000) {
mes "You don't have enough Zeny.";
close3;
}
Zeny -= 20000;
close2;
set lastwarp$, getarg(0);
set lastwarpx, getarg(1,0);
set lastwarpy, getarg(2,0);
warp getarg(0),getarg(1,0),getarg(2,0);
end;
}
But I'd like to know how I can make it so that dungeon warps will cost 5,000 zeny. And is there any modification to the script that will make it so that all dungeon warps will be redirected to only 1st floor of the dungeon?
Question
kittypryde
Hello I'm using this warper npc script: https://github.com/rathena/rathena/blob/master/npc/custom/warper.txt
I'd like to seek assistance with modifying the script so that the town warps will cost 2,000 zeny and the dungeon warps will cost 5,000 zeny. Also I'd like to know how to make it free for VIPs.
I was able to put town warp cost by adding this:
function Go { if (select("Pay 20k Zeny", "Cancel") == 2) close3; if (Zeny < 20000) { mes "You don't have enough Zeny."; close3; } Zeny -= 20000; close2; set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); end; }
But I'd like to know how I can make it so that dungeon warps will cost 5,000 zeny. And is there any modification to the script that will make it so that all dungeon warps will be redirected to only 1st floor of the dungeon?
Thank you.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.