Bringer Posted November 20, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 737 Reputation: 47 Joined: 03/12/14 Last Seen: 5 hours ago Share Posted November 20, 2014 http://pastebin.com/TfNdLgX2script is working fine the problem is i want too change my 800ygg to 8pcs ygg box but the npc alwys give me 1pc box can anyone help about this script Quote Link to comment Share on other sites More sharing options...
Luciar Posted November 20, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 177 Reputation: 21 Joined: 01/31/12 Last Seen: March 8, 2020 Share Posted November 20, 2014 (edited) I have made a few changes, find my revisions here: [paste=27uxm2jof4qp] Changes: 1) The use of the file extension ".gat" is not needed in the map name for rAthena and was removed.2) $@npcname_mpq$ is a temporary global variable. You only need to use a temporary scope variable (prefix .@)3) The use of menu is not incorrect, but I updated to use select, you can view here: Select 4) Removed .@amount == 100 from the logic statement below. This way players will be able to offer any number of berries they may have. (specifically allows for a donation of exactly 100 berries): if ( .@amount == 100 || countitem(607) < .@amount ) 5) Updated delitem 607 ,100; to remove the actual number of berries, not always 100. It will remove the integer division of the amount by 100 (e.g. 350 / 100 = 3). The player will retain the remainder of that division (i.e. 50). I don't have a test server but my revisions should work correctly. Let me know if it doesn't! Edited November 20, 2014 by luciar Quote Link to comment Share on other sites More sharing options...
Bringer Posted November 20, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 737 Reputation: 47 Joined: 03/12/14 Last Seen: 5 hours ago Author Share Posted November 20, 2014 (edited) I have made a few changes, find my revisions here: [paste=27uxm2jof4qp] Changes: 1) The use of the file extension ".gat" is not needed in the map name for rAthena and was removed. 2) $@npcname_mpq$ is a temporary global variable. You only need to use a temporary scope variable (prefix .@) 3) The use of menu is not incorrect, but I updated to use select, you can view here: Select 4) Removed .@amount == 100 from the logic statement below. This way players will be able to offer any number of berries they may have. (specifically allows for a donation of exactly 100 berries): if ( .@amount == 100 || countitem(607) < .@amount ) 5) Updated delitem 607 ,100; to remove the actual number of berries, not always 100. It will remove the integer division of the amount by 100 (e.g. 350 / 100 = 3). The player will retain the remainder of that division (i.e. 50). I don't have a test server but my revisions should work correctly. Let me know if it doesn't! Thanks Luciar 100% working as you said can you help me about this script too? http://rathena.org/board/topic/99163-help-about-this-script/ Edited November 20, 2014 by DrewxD Quote Link to comment Share on other sites More sharing options...
Question
Bringer
http://pastebin.com/TfNdLgX2
script is working fine
the problem is i want too change my 800ygg to 8pcs ygg box but the npc alwys give me 1pc box
can anyone help about this script
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.