Jump to content
  • 0

Anyone help about this script


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...