Jump to content

Utility: GM Reward Giver


sandbox

Recommended Posts


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

File Name: GM Reward Giver

File Submitter: sandbox

File Submitted: 21 Feb 2014

File Category: Utilities

Content Author: UnoDelta, sandbox


It's basically a script to monitor the items that are given out by your staff to the players, the main use of this is for events, so you can track if any of your staff is being a bad boy! XD

Installation

  • Enable the script on your NPC folder
  • Create a table in your database using the code below, or manually by yourself, make sure all columns accept text!

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

  • Configure this line to the minimum GM group level that you want to monitor.

if (getgroupid() < 4){end;}

  • Configure the map and coordinates where you would place your NPC, it's advised to place it in a map that can't be accessed by your players
  • Enjoy with an evil laugh so you can simply swing the ban hammer upon your corrupt GMs! (Optional)


To monitor your staff's reward logs, simply check the `evt_prize` table and view the item rewarding activity..

I might update this and add an option where you could view your logs in-game, when I feel like scripting.. Oh yeah! Not!


Terms & Conditions:

  • You are not allowed to reproduce or make profit of this script
  • You are not allowed to take credit for this script. Though you can modify/edit it to your liking.
  • I can give you support, but please, do not message me.



Click here to download this file

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Is this compatible with eAthena?

 

Can you add whisper command for GM? So GM doesn't need to go to NPC everytime they want to give the reward.

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:  

Is this compatible with eAthena?

 

Can you add whisper command for GM? So GM doesn't need to go to NPC everytime they want to give the reward.

 

It can be compatible, just change the getgroupid checking into getgmlevel since eAthena doesnt support groups yet

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

 

It can be compatible, just change the getgroupid checking into getgmlevel since eAthena doesnt support groups yet

 

 

Thanks for the info.. But, this script will automatically give players the reward right? So, if I want to make it only work by whisper.. I will just do it like this :

-	script	GMReward	-1,{
OnWhisperGlobal:

set .npcname$,"[ Event Reward ]";
if (getgmlevel() < 4){end;}

mes .npcname$;
mes "Hello "+strcharinfo(0)+", How can I help you?";
menu "-Give Reward",N_Name,"-Nothing",-;
next;
mes .npcname$;
mes "Alright! See you soon.";
close;

right?

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:  

Yep, it should work when properly modified :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   32
  • Joined:  01/21/13
  • Last Seen:  

Amazing *o*, Really amazing, love your release <3 <3 <3 (I already tried creating something like this, but I failed D= )

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   0
  • Joined:  11/20/13
  • Last Seen:  

hi sandbox... is there any chance it could make a refines? like we rewarded them with shield... it has a category too for refiner on how many refines :D just what im thinking only..

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:  

hi sandbox... is there any chance it could make a refines? like we rewarded them with shield... it has a category too for refiner on how many refines :D just what im thinking only..

Sorry for the late reply, you can use getitem with getitem2 instead!

Link to comment
Share on other sites


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

help Sir Sandbox

i already done this
 

  • Enable the script on your NPC folder
  • Create a table in your database using the code below, or manually by yourself, make sure all columns accept text!

The Npc already there when start click the npc nothing

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:  

Kindly post any debug/warning/errors given by your console..

Link to comment
Share on other sites


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

Kindly post any debug/warning/errors given by your console..

about that i cant see the console im only Sub Admin i will update you sir for that

 

i put this on our database

CREATE TABLE evt_prize

(

rwd_time varchar(255),

player varchar(255),

item_id varchar(255),

amount varchar(255),

gm_name varchar(255)

);

then i place the script then load in custom.conf

the NPC there but the problem i cant click on it this script wokring on eathena?

 

SIr Sandbox do you have facebook account?

Edited by DrewxD
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:  

There should be an error on your console.

 

If you're using eAthena, you should change getgroupid into getgmlevel

Link to comment
Share on other sites


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

There should be an error on your console.

 

If you're using eAthena, you should change getgroupid into getgmlevel

its Working now how to change the corlor of the font to yellow color?

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:  

Change this line

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all,0xFF8080;

to

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all;
Link to comment
Share on other sites


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

 

Change this line

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all,0xFF8080;

to

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all;

Nice Thanks Can you help for another script ?

@sandbox can you give the code like this yellow font please thanks

1526991_540331056083382_1269570623_n.jpg

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 don't memorize the color hex table.. But it should be a combination of red and green, so try this..

 

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all,0x888800;
Link to comment
Share on other sites


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

 

I don't memorize the color hex table.. But it should be a combination of red and green, so try this..

announce "[Event GM] "+strcharinfo(0)+" has rewarded "+.@Rew_Amt+" "+.@itemname$+" to "+.@Rew_Name$+".",bc_all,0x888800;

i mean Sir announce msg Format like this on the screen shot

 

1526991_540331056083382_1269570623_n.jpg

 

is this right code Sandbox?

announce " "+strcharinfo(0)+": Event Winner is "+.@Rew_Name$+" - Prize: "+.@Rew_Amt+" "+.@itemname$+".",bc_all;

and there a chance go give 2 or 3 time at the same time for 1 winner sir?

Edited by DrewxD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

This is a good script I wish they would put it in officially so people don't have to reinstall it every time. Anyways good work. I have been using sql more and more in my scripting and this is a good example of what it can do. Nice work.

 

Peopleperson49

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:  

Thanks, though I admit this isn't fully optimized, I might rewrite my scripts in the future..

Link to comment
Share on other sites


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

Thanks, though I admit this isn't fully optimized, I might rewrite my scripts in the future..

i hope you update your script  an option to Give 2 or 3 prize @ the same Player WInner thanks

Edited by DrewxD
Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

How to put Logs on this script?

Example: my event GM will Give Rewards to players how can i monitor the rewards he give to the players?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

create this table in your sql db and you can check logs in evt_prize table

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

 

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
Reply to this topic...

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