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; }
Question
BTNX
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.