Jump to content
  • 0

Performance


BTNX

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   3
  • Joined:  04/02/12
  • Last Seen:  

For some reason, my test server started lagging after I enabled this script:

- script set_to_99 -1,{
OnPCLoginEvent:
if(getgroupid() == 99) end;
set donotreset,0;
atcommand "@adjgroup 99";
dispbottom "You are currently connected to Vanaheim-RO Test Server";
dispbottom "Your character info will reset after logout, use @resetprotection to prevent reset";
dispbottom "You are currently a level 99 GM";
end;
}

- script resetprotection -1,{
OnInit:
bindatcmd "resetprotection",strnpcinfo(3)+"::OnResetprotection";
end;
OnResetprotection:
menu "Set reset protection to ON",L_ON,"Set reset protection to OFF",L_OFF;
close;
L_ON:
set donotreset,1;
dispbottom "Your character info will not reset after logout";
end;

L_OFF:
set donotreset,0;
dispbottom "Your character info will reset after logout";
end;
}


 

Is any part of this script heavy on the server?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

pm me on skype buddy

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...