jamesandrew Posted November 23, 2023 Group: Members Topic Count: 23 Topics Per Day: 0.03 Content Count: 60 Reputation: 3 Joined: 06/21/23 Last Seen: March 4 Share Posted November 23, 2023 (edited) I need help changing the default rathena custom warper. I want to add a 1.000 zeny cost for level 50 and above but keep it free for levels below 50. https://github.com/rathena/rathena/blob/8740574ae349e516c5d3914bfaf13db13539327e/npc/custom/warper.txt#L19 Edited November 27, 2023 by jamesandrew Quote Link to comment Share on other sites More sharing options...
1 Nyaniverse Posted November 23, 2023 Group: Members Topic Count: 13 Topics Per Day: 0.02 Content Count: 51 Reputation: 34 Joined: 09/09/23 Last Seen: Sunday at 07:31 PM Share Posted November 23, 2023 (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 November 23, 2023 by Nyaniverse edit snippet 1 1 Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted November 23, 2023 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted November 23, 2023 Add set zeny then add condition statement Quote Link to comment Share on other sites More sharing options...
Question
jamesandrew
I need help changing the default rathena custom warper. I want to add a 1.000 zeny cost for level 50 and above but keep it free for levels below 50.
Edited by jamesandrewhttps://github.com/rathena/rathena/blob/8740574ae349e516c5d3914bfaf13db13539327e/npc/custom/warper.txt#L19
Link to comment
Share on other sites
2 answers 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.