Bringer Posted November 20, 2014 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
Luciar Posted November 20, 2014 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
Bringer Posted November 20, 2014 Author 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
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
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.