Jump to content
  • 0

Can Someone Help me with this script?


Chickz

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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 by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

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 by plankt
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can try this if you want

http://upaste.me/478d509f3057a67

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

It Works perfectly

Thank You Emistry ,Plankt, Mysterious ^^

two Thumbs up !! >_<

Edited by chilo1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...