Alexandria 53 Posted September 9, 2015 Hello there. I need a npc that actives your commands or disable your commands on login for @showzeny and @showexp any help would be appreciated, Thank you! Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted September 10, 2015 You could try something like this: prontera,157,173,5 script Login Settings 100,{.@npcname$ = "["+ strnpcinfo(1) +"]";// dispbottom atcommand_login +""; // debuggingmes .@npcname$;mes "Hello, "+strcharinfo(0);mes "What setting do you want to change?";next;for ( .@i = 0; .@i < .total; .@i++ ).@menu$ = .@menu$ + .atname$[.@i] +"["+( ( atcommand_login & 1 << .@i )? "^00BB22On^000000" : "^FF2200Off^000000" )+"]:";.@s = select( .@menu$ ) -1;mes .@npcname$;mes "Status: "+( ( atcommand_login & 1 << .@s )? "^00BB22On^000000" : "^FF2200Off^000000");next;mes .@npcname$;if ( select( "I want to "+( ( atcommand_login & 1 << .@s )? "^FF2200disable^000000": "^00BB22enable^000000" )+" it", "Nothing" ) == 2 ) {mes "See ya.";close;}if ( atcommand_login & 1 << .@s ) {mes .atname$[.@s] +" is now ^FF2200Off^000000.";atcommand "@"+ .atcommand$[.@s] +" off";}else {mes .atname$[.@s] +" is now ^00BB22On^000000.";atcommand "@"+ .atcommand$[.@s] +( ( .@s == 1 )? " on": "" );}atcommand_login = atcommand_login ^ 1 << .@s;close;OnPCLoginEvent:if ( !atcommand_login ) end;for ( .@i = 0; .@i < .total; .@i++ ) {if ( atcommand_login & 1 << .@i ) {atcommand "@"+ .atcommand$[.@i] +( ( .@i == 1 )? " on": "" );dispbottom .atname$[.@i] +" is now On";}}end;OnInit:setarray .atname$, "Autoloot", "Main Chat", "@NoAsk";setarray .atcommand$, "autoloot", "main", "noask";.total = 3;end;} -Thanks to Annie You obviously need to make adjustments to this script. Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 10, 2015 Oh I thought it would work just with rA. Thank you. Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted September 10, 2015 Oh I thought it would work just with rA. Thank you. If you're using rA than it should. Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 10, 2015 Oh I thought it would work just with rA. Thank you. If you're using rA than it should. Nope. I'm using hercules. Its working good with hercules tho. Thanks Quote Share this post Link to post Share on other sites
Hello there.
I need a npc that actives your commands or disable your commands on login for @showzeny and @showexp
any help would be appreciated, Thank you!
Share this post
Link to post
Share on other sites