darkmeistersp Posted November 24, 2011 Posted November 24, 2011 Hi! With this little script you´ll be able to enable commands on the players who log in to your server. prontera,155,175,0 script NPC -1,{ close; OnPCLoginEvent: atcommand strcharinfo(0)+"@main on"; atcommand strcharinfo(0)+"@autoloot", atcommand strcharinfo(0)+"@showexp", close; } The code above is an example. You can add the commands you want! Quote
Emistry Posted November 24, 2011 Posted November 24, 2011 (edited) but remember to change the GM levels for the commands in conf/atcommand_athena.conf *atcommand "<command line>"; This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99. Edited November 24, 2011 by Emistry Quote
darkmeistersp Posted November 24, 2011 Author Posted November 24, 2011 Hmmm, you are right haha. Now it´s ok Quote
whitesn Posted December 3, 2011 Posted December 3, 2011 but remember to change the GM levels for the commands in conf/atcommand_athena.conf *atcommand "<command line>"; This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99. AFAIK.. *atcommand" can be used for all type of levels ( Even 0 player with no privilege can do @item ( if the script says so )... ex : conf/atcommand_athena.conf item: 99,99 ( Only level 99 acc can do it ) atcommand @item 607 -> This syntax still works for level 0 player Quote
Emistry Posted December 3, 2011 Posted December 3, 2011 what i refered above is that..last time the Topic Starter has request other member to adjust the Command Level so that the script can make use of the command.. and that was wrong..and i just post that message to remind the topic starter..... and yes that atcommand will allow users to make use of all command even though your account is normal account Quote
Judas Posted December 3, 2011 Posted December 3, 2011 can this be made to an item? like say a reusuable item. If you use it, a menu shows up and you can toggle on or off what settings you want? Quote
whitesn Posted December 3, 2011 Posted December 3, 2011 can this be made to an item? like say a reusuable item. If you use it, a menu shows up and you can toggle on or off what settings you want? Requires src modification or even client modification (maybe) what i refered above is that..last time the Topic Starter has request other member to adjust the Command Level so that the script can make use of the command.. and that was wrong..and i just post that message to remind the topic starter..... and yes that atcommand will allow users to make use of all command even though your account is normal account Oh I see.. Quote
QQfoolsorellina Posted December 3, 2011 Posted December 3, 2011 suggest format: atcommand "@main on "+strcharinfo(0); Quote
KeiKun Posted December 3, 2011 Posted December 3, 2011 suggest format: atcommand "@main on "+strcharinfo(0); actually no need for "strcharinfo(0)" for Example: atcommand "@mapexit"; break; since its not charcommand~ Quote
Emistry Posted December 3, 2011 Posted December 3, 2011 can this be made to an item? like say a reusuable item. If you use it, a menu shows up and you can toggle on or off what settings you want? you may use this Script made by @llchrisll Quote
Omnipotent Posted December 5, 2011 Posted December 5, 2011 (edited) You could make a floating script, it's better for this use, and it deletes the need of the first 'close'. Edited December 5, 2011 by FrozIgnition Quote
Sneaky Posted December 8, 2011 Posted December 8, 2011 Why is it too much discussion about this xd... - script cmd_npc -1,{ end; OnPCLoginEvent: if(getgmlevel() >= 10) { end; } atcommand "@main on"; atcommand "@autoloot", atcommand "@showexp", //Add more commands here.. end; } If the player's GM Level is 10 or more, it will NOT trigger the commands when logging on. Period. Quote
llchrisll Posted December 8, 2011 Posted December 8, 2011 can this be made to an item? like say a reusuable item. If you use it, a menu shows up and you can toggle on or off what settings you want? you may use this Script made by @llchrisll I'm atm trying to add a few features to that script o.o, like saving the settings on the whole acc or just the char it is done already. Also adding the autolootitem/alootid with multiply items, but well that is after my Arena Master [/advertize] Btw, thanks for mentioning my script . Regards, Chris Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.