Script Needed How To Make A Player GM

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Script Needed How To Make A Player GM

Postby H4wk3r on Tue Mar 15, 2011 10:26 am

Hey hey peeps...

Well what I am trying to accomplish is having an in-game command used by A GM (Access level 300) called /makegm "player name"

Basically what this command should do is

A GM would type /makegm H4wk3r

and then automatically that command should

----> Change Access level In DB from 100 to 300
----> Edit Current Toon Name and Add [GM] Tag before Name = [GM]H4wk3r
----> Send private Message To Otherclient saying "Welcome [GM] Name, Please Re-log to get [GM] Status.

Player Re-logs and poof... all done..

The idea I got from viewtopic.php?f=27&t=4777&p=50291&hilit=add+[GM]+Tag#p50291

Please can anyone help me on this ? I have tried to do it myself but I'm getting all sorts of different errors..
H4wk3r
Little soul
Little soul
 
Posts: 1
Joined: Tue Mar 15, 2011 8:40 am

Re: Script Needed How To Make A Player GM

Postby Juan on Tue Mar 15, 2011 12:19 pm

it shouldn't be that hard , just change the strcmp parameter and modify the sql query
User avatar
Juan
Rackie
Rackie
 
Posts: 219
Joined: Fri Oct 10, 2008 6:25 pm

Re: Script Needed How To Make A Player GM

Postby PurpleYouko on Tue Mar 15, 2011 1:48 pm

There should be no need to relog either
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Script Needed How To Make A Player GM

Postby Circa on Tue Mar 15, 2011 11:53 pm

PurpleYouko wrote:There should be no need to relog either

Why not? Usually if you get any sort of change like that you normally have to relog in ROSE, since most things ingame involve relogging. Like getting deputy master in a clan, you normally have to relog to be able to use some of the commands, or even take clan members to junon clan fields(irose).
Circa
Clown
Clown
 
Posts: 404
Joined: Sun Aug 23, 2009 5:52 am
Location: CA

Re: Script Needed How To Make A Player GM

Postby PurpleYouko on Wed Mar 16, 2011 1:53 pm

Circa wrote:
PurpleYouko wrote:There should be no need to relog either

Why not? Usually if you get any sort of change like that you normally have to relog in ROSE, since most things ingame involve relogging. Like getting deputy master in a clan, you normally have to relog to be able to use some of the commands, or even take clan members to junon clan fields(irose).


Clan stuff is a bit different.
It is controlled through the character server which has no easy way to update itself after worldserver changes.
Changing access level of a player or character is done internally so all you would have to do is make the change in the currently loaded player data and all GM abilities will be instant.
Relogging is only necessary if the changes are made just in the database. If you change active data too then it won't be needed.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm


Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 1 guest

cron