Chickz Posted June 20, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 03/18/12 Last Seen: April 19, 2020 Share Posted June 20, 2012 http://pastebin.com/pJFBmtwJ if gm level 50, 90, or 99 login it has broadcast... but it's not broadcast when gm logout... >_< Quote Link to comment Share on other sites More sharing options...
Mystery Posted June 20, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted June 20, 2012 (edited) You could try this: - script GMLogin -1,{ OnPCLoginEvent: if(getgmlevel()==50) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok GM Police/Event, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } OnPCLogoutEvent: if(getgmlevel() == 50) { atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Logout"; } } - script GMLogin2 -1,{ OnPCLoginEvent: if(getgmlevel() == 90) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok Head GM, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } OnPCLogoutEvent: if(getgmlevel()==90) { atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Logout"; } } - script GMLogin3 -1,{ OnPCLoginEvent: if(getgmlevel() ==99 ) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } OnPCLogoutEvent: if(getgmlevel()==99) { atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Logout"; } } Or this: - script GMLogin -1,{ OnPCLoginEvent: if(getgmlevel()==50) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok GM Police/Event, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } if(getgmlevel() == 90) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok Head GM, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } if(getgmlevel() ==99 ) { atcommand "@speed 0"; atcommand "@hide"; atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Login"; atcommand "@monsterignore"; dispbottom "Welcome "+strcharinfo(0)+" ! Please make sure to check players!"; dispbottom "Current Server Time : " + gettimestr("%A %B %d %Y - %I:%M %p",40); } } - script GMLogout -1,{ OnPCLogoutEvent: if(getgmlevel() >= 50) { atcommand "@kamib Endless Ragnarok GM, "+strcharinfo(0)+" Has Logout"; } } Or remove the GmLogout npc and just add OnPCLogoutEvent in one NPC. Or, use plankt's. Edited June 20, 2012 by Mysterious Quote Link to comment Share on other sites More sharing options...
plankt Posted June 20, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted June 20, 2012 (edited) On the OnPCLogoutEvent, you need to change the if(getgmlevel()==XX) end; To if(getgmlevel()!=XX) end; I'd probably redo it a bit to this: http://upaste.me/96e950826f7e686 EDIT @Mysterious: Don't forget to add "end;" after OnPCLoginEvent, to prevent it from going to OnPCLogoutEvent. Edited June 20, 2012 by plankt Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 20, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted June 20, 2012 you can try this if you want http://upaste.me/478d509f3057a67 Quote Link to comment Share on other sites More sharing options...
Chickz Posted June 20, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 03/18/12 Last Seen: April 19, 2020 Author Share Posted June 20, 2012 (edited) It Works perfectly Thank You Emistry ,Plankt, Mysterious ^^ two Thumbs up !! >_< Edited June 20, 2012 by chilo1 Quote Link to comment Share on other sites More sharing options...
Question
Chickz
http://pastebin.com/pJFBmtwJ
if gm level 50, 90, or 99 login it has broadcast...
but it's not broadcast when gm logout...
>_<
Link to comment
Share on other sites
4 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.