Jump to content
  • 0

@reward request


Heartbreak

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  12/02/12
  • Last Seen:  

Please help me.. I've been having problems with corrupt gm's recently.. 
I want to add a command that does this things so i will be able to see in logs:

@reward1 Player name = Give item 7720 to a player and announce that he won an Event Coin.
@reward2 Player name = Give 50 berry ticket (ID 7307) to a player and announce that he won 50 berry tickets.. 

Please help me.. This is the only solution i find to avoid these corrupt GM's.. :(

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

I have uploaded a file.. Though it's still under approval, check it later!

 

http://rathena.org/board/files/file/3118-gm-reward-giver/

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

I have uploaded a file.. Though it's still under approval, check it later!

 

http://rathena.org/board/files/file/3118-gm-reward-giver/

 

You should use .@ vars instead of @ vars which persist through execution. I've re-uploaded and approved the script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

 

I have uploaded a file.. Though it's still under approval, check it later!

 

http://rathena.org/board/files/file/3118-gm-reward-giver/

 

You should use .@ vars instead of @ vars which persist through execution. I've re-uploaded and approved the script.

 

 

Thank you sir! Hope my other scripts gets approved as well. xD I admit they are kinda badly coded for they have been written years ago already..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  12/02/12
  • Last Seen:  

thanks a lot ! ermm.. but where should i put these ? 

CREATE TABLE evt_prize
(
rwd_time varchar(255),
player varchar(255),
item_id varchar(255),
amount varchar(255),
gm_name varchar(255)
);

will these work with @command like @reward ? 

thank you all for your fast replies :D 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Put those codes on your RO SQL database..

 

No, unfortunately it's just an NPC.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Here's a script-based atcommand version with SQL logging: http://rathena.org/board/files/file/3126-reward-command/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/13/14
  • Last Seen:  

Here's a script-based atcommand version with SQL logging: http://rathena.org/board/files/file/3126-reward-command/

Sir santa poring where i put the script that u give??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Sir santa poring where i put the script that u give??

My name isn't Santa Poring though... /swt

 

Place the script in your npc (probably somewhere like npc/custom/) and then type @loadnpc npc/custom/reward.txt in-game. After you've run the SQL query in your logs schema, type @reward in-game to use the command (default syntax: @reward <preset> <player name>); there's no NPC to click, since the script is activated via @reward.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/13/14
  • Last Seen:  

OK

 

 

Sir santa poring where i put the script that u give??


My name isn't Santa Poring though... /swt

 

Place the script in your npc (probably somewhere like npc/custom/) and then type @loadnpc npc/custom/reward.txt in-game. After you've run the SQL query in your logs schema, type @reward in-game to use the command (default syntax: @reward <preset> <player name>); there's no NPC to click, since the script is activated via @reward.

 

OK thanks :D  /thx


bugg_zpsbae900a1.png

 

Sir santa poring.. i have enconuter error?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

What's your Git hash or revision number? Works on a fresh copy of rA, for me. o_o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/13/14
  • Last Seen:  

ra> Revision 17702 and for ragexe 2013-08-07 do now the problem its say for line 59 to 69 :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Sorry for the late reply; I've updated the script for some backwards compatibility, which fixes that error. Please download the newest version: http://rathena.org/board/files/file/3126-reward-command/

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