Jump to content
  • 0

Can Someone Help me with this script?


Question

4 answers to this question

Recommended Posts

Posted (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 by Mysterious
Posted (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 by plankt

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...