Jump to content
  • 0

Anyone help about this script


Question

2 answers to this question

Recommended Posts

Posted (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 by luciar
Posted (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 by DrewxD

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