need level 1 account
//eathena
- script test -1,{
OnPCLoadMapEvent:
if ( getgmlevel() == 1 )
getmapxy .@map$,.@x,.@y,0;
query_sql "SELECT `save_map`, `save_x`, `save_y` FROM `char` WHERE `name` = '"+strcharinfo(0)+"' and `char_id` = "+ getcharid(0)+"", .@mapz$, .@xx, .@yy;
if (.@map$ == .@mapz$ && .@x == .@xx && .@y == .@yy) {
percentheal 85,85;
end;
}
}
need group_id 1 account
//rathena
- script test -1,{
OnPCLoadMapEvent:
if ( getgroupid() == 1 )
getmapxy .@map$,.@x,.@y,0;
query_sql "SELECT `save_map`, `save_x`, `save_y` FROM `char` WHERE `name` = '"+strcharinfo(0)+"' and `char_id` = "+ getcharid(0)+"", .@mapz$, .@xx, .@yy;
if (.@map$ == .@mapz$ && .@x == .@xx && .@y == .@yy) {
percentheal 85,85;
end;
}
}
//eamod
- script test -1,{
OnPCLoadMapEvent:
if ( isPremium() == 1 )
getmapxy .@map$,.@x,.@y,0;
query_sql "SELECT `save_map`, `save_x`, `save_y` FROM `char` WHERE `name` = '"+strcharinfo(0)+"' and `char_id` = "+ getcharid(0)+"", .@mapz$, .@xx, .@yy;
if (.@map$ == .@mapz$ && .@x == .@xx && .@y == .@yy) {
percentheal 85,85;
end;
}
}
if you save in prontera then die at the prontera the script will not working but if you die in other map then respawn to save points the script 100% working