prontera,150,150,0 script Resetter 100,{
if ( Zeny < 100000 ) end;
mes "Want to remove your skillpoints?";
next;
if ( select("Yes:No") -1 ) end;
Zeny -= 100000;
set SkillPoint, 0;
mes "Done!";
close;
}
Let's try this :
DELETE FROM `login` WHERE DATEDIFF(NOW(), `lastlogin`) > 6;
I don't have responsibilities if something went wrong. Please do a backup before you do something
- script Sample -1,{
OnPCLoginEvent:
if ( !#enabled || #pw$ == "" ) end;
sc_start SC_BERSERK, 1000000000, 1;
mes .npc$;
mes "Input your account password";
next;
input @pass$;
if ( @pass$ == #pw$ ) {
sc_end SC_BERSERK;
percentheal 100, 100;
end;
}
sc_end SC_BERSERK;
atcommand "@kick " +strcharinfo(0);
end;
OnSecurity:
mes .npc$;
mes "Hello " +strcharinfo(0)+ ", What can i do for you?";
next;
switch (select("Password Protection ( "+(#enabled?"^009933Enabled":"^FF0000Disabled")+"^000000 ):Setup a password:Delete my password:Nothing")) {
case 1: if ( #pw$ == "" ) {
mes .npc$;
mes "You cannot enable the password protection if you don't have a password.";
close;
}
if ( #enabled ) #enabled = 0;
else #enabled = 1;
message strcharinfo(0),"You have " +(#enabled?"enabled":"disabled")+ " the security system on your account";
break;
case 2: if ( #pw$ != "" ) {
mes .npc$;
mes "You already have a password for your account.";
close;
}
mes .npc$;
mes "Input your account password";
next;
input @pw$;
if ( @pw$ == "" ) end;
#pw$ = @pw$;
message strcharinfo(0),"You have set your account password (" +#pw$+ ")";
break;
case 3: if ( #pw$ == "" ) {
mes .npc$;
mes "You don't have a password to delete.";
close;
}
#pw$ = "";
if ( #enabled ) #enabled = 0;
message strcharinfo(0),"You have deleted your account password";
break;
case 4: break;
default: break;
}
end;
OnInit:
.npc$ = "[ ^FF0000" +strnpcinfo(1)+ "^000000 ]";
bindatcmd "security",strnpcinfo(3)+"::OnSecurity";
end;
}
[paste=2y02lq1oag4m]
@security to make it work.
@Edit :
You can use the following commands to prevent them using @warp even they save that command from their ALT + M. I didn't include these two commands on my code above as my test server is outdated and doesn't have the said commands.
*enable_command;
*disable_command;
These commands toggle the ability to use atcommand while interacting with an NPC.
The default setting, 'atcommand_enable_npc', is defined in 'conf/battle/gm.conf'.