Jump to content
  • 0

Need help on modifying ITEM REWARDS script by Euphy


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Can anyone help me modify this ITEM REWARDS script by Euphy ?

Basically I wanted to remove the Packages. instead put an array of item id's that can be rewarded and specify its amount.

Then put it in the logs like this: GM_NAME sent ITEM_AMOUNTx ITEM_NAME to PLAYER_NAME

Example:

 

Instead of Package # options which is:

      set .PackageCount,3;
      setarray .Package1[0],501,1,502,2,503,3;
      setarray .Package2[0],601,5,602,10;
      setarray .Package3[0],607,10;

It would be like this:

     setarray .itemid_reward[0],501,502,503,and so on;

About the amount:

set .MaxAmount,50;
. . . . . . . . . . . . . . . . 

//when entering the amount
input .@item_amount;
if(.@item_amount > .MaxAmount) {
   mes "[Item Rewards]";
   mes "Sorry, you're beyond the limits.";
   close;
}

Sorry, I couldn't modify the script by myself. Anyway thanks in advance for those who could help me.

/no1   /no1  /no1

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

**BUMP!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

*****BUMP!

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