Virtue Posted August 21, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Share Posted August 21, 2012 (edited) Hi, I would like to request a change gm npc that can't be used when war of emperium is active. thanks EDIT : change guild master NPC Edited August 21, 2012 by Vitrue Quote Link to comment Share on other sites More sharing options...
skyleo Posted August 21, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 39 Reputation: 2 Joined: 08/19/12 Last Seen: April 8, 2022 Share Posted August 21, 2012 Would be nice if you could say exactly what you're meaning with change gm. Deactivate and Activate GM Powers? Setting GM Level? Quote Link to comment Share on other sites More sharing options...
Virtue Posted August 21, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Author Share Posted August 21, 2012 change guild master Quote Link to comment Share on other sites More sharing options...
PewN Posted August 21, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share Posted August 21, 2012 prontera,0,0,0 script Changer 100,{ if(agitcheck() ){ mes "War is currently in progress"; close; } mes " OK Please Input the name of the character"; mes "The player mus be online!"; next; input #input$; atcommand "@changegm "+#input$+""; mes "Done!"; close; } Quote Link to comment Share on other sites More sharing options...
skyleo Posted August 21, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 39 Reputation: 2 Joined: 08/19/12 Last Seen: April 8, 2022 Share Posted August 21, 2012 (edited) Fine simple script but pls change this: atcommand "@changegm "+#input$+""; in this: guildchangegm(getcharid(2), @input$); And pls use a temporary character var, why permanent account? You need to add an if when using this command: if(getguildmaster(getcharid(2)) != strcharinfo(0)) { mes "You're not the guildmaster of this guild"; close; } Also this If would make sense: if(!getcharid(2)) { mes "You're in none guild!"; close;} EDIT: Here the corrected script: prontera,0,0,0 script Changer 100,{ if(!getcharid(2)) { mes "You're in none guild!"; close;} if(getguildmaster(getcharid(2)) != strcharinfo(0)) { mes "You're not the guildmaster of this guild"; close; } if(agitcheck()){ mes "War is currently in progress"; close; } mes "OK Please Input the name of the character"; mes "The player mus be online!"; next; input @input$; set @success, guildchangegm(getcharid(2), @input$); if(!@success) { mes "Something's wrong, maybe the player doesn't exist."; close; } mes "Done!"; close; } EDIT: Forgot a close; when failing lawl. Edited August 21, 2012 by skyleo Quote Link to comment Share on other sites More sharing options...
PewN Posted August 21, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share Posted August 21, 2012 Fine simple script but pls change this: atcommand "@changegm "+#input$+""; in this: guildchangegm(getcharid(2), @input$); And pls use a temporary character var, why permanent account? You need to add an if when using this command: if(getguildmaster(getcharid(2)) != strcharinfo(0)) { mes "You're not the guildmaster of this guild"; close; } Also this If would make sense: if(!getcharid(2)) { mes "You're in none guild!"; close;} EDIT: Here the corrected script: prontera,0,0,0 script Changer 100,{ if(!getcharid(2)) { mes "You're in none guild!"; close;} if(getguildmaster(getcharid(2)) != strcharinfo(0)) { mes "You're not the guildmaster of this guild"; close; } if(agitcheck()){ mes "War is currently in progress"; close; } mes "OK Please Input the name of the character"; mes "The player mus be online!"; next; input @input$; set @success, guildchangegm(getcharid(2), @input$); if(!@success) { mes "Something's wrong, maybe the player doesn't exist."; } mes "Done!"; close; } ahaha nice like this. ! Quote Link to comment Share on other sites More sharing options...
skyleo Posted August 21, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 39 Reputation: 2 Joined: 08/19/12 Last Seen: April 8, 2022 Share Posted August 21, 2012 (edited) But there's one thing I don't like at this script, maybe one could help us. I save the returned value of the command in @success, but this is unneccesary because there is a var which is fixed and has the last value an command returned. But unfortunately I forgot his name ... Edited August 21, 2012 by skyleo Quote Link to comment Share on other sites More sharing options...
Question
Virtue
Hi, I would like to request a change gm npc that can't be used when war of emperium is active. thanks
EDIT : change guild master NPC
Edited by VitrueLink to comment
Share on other sites
6 answers to this question
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.