The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
help-me with guild point
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
stiflerxx
type'm trying to create an automatic point guild ta put the script just reading the 1st rank of the 2 ° and 3 ° it ta not reading what I'm doing wrong?
- script Verificar#MapGuild -1,{
OnPCLoadMapEvent:
if(getgmlevel() < 1){
query_sql "SELECT `id`,`name`,`ratio` FROM `pvpm_data` where `type` = '2' ORDER BY `ratio` DESC LIMIT 1",.@Guild1,.@Name1$,.@ratio1;
set .@1Lugar,.@ratio1;
if( strcharinfo(3) == "louyang" && strcharinfo(2) != getguildname(.@Guild1) ){
mes "[^FF8000Point Clã WOE^000000]";
mes "Para entra nesse mapa você precisa ser do clã ^FF8000"+.@Name1$+"^000000";
mes "Então você será teleportado para prontera!!";
close2;
warp "prontera",150,150;
end;
}
}
if(getgmlevel() < 1){
query_sql "SELECT `id`,`name`,`ratio` FROM `pvpm_data` where `type` = '2' ORDER BY `ratio` < '"+.@1Lugar+"' DESC LIMIT 1",.@Guild2,.@Name2$,.@ratio2;
set .@2Lugar,.@ratio2;
if( strcharinfo(3) == "job_wiz" && strcharinfo(2) != getguildname(.@Guild2) ){
mes "[^FF8000Point Clã WOE^000000]";
mes "Para entra nesse mapa você precisa ser do clã ^FF8000"+.@Name2$+"^000000";
mes "Então você será teleportado para prontera!!";
close2;
warp "prontera",150,150;
end;
}
}
if(getgmlevel() < 1){
query_sql "SELECT `id`,`name`,`ratio` FROM `pvpm_data` where `type` = '2' ORDER BY `ratio` < '"+.@2Lugar+"' DESC LIMIT 1",.@Guild3,.@Name3$,.@ratio3;
set .@3Lugar,.@ratio3;
if( strcharinfo(3) == "kh_kiehl02" && strcharinfo(2) != getguildname(.@Guild3) ){
mes "[^FF8000Point Clã WOE^000000]";
mes "Para entra nesse mapa você precisa ser do clã ^FF8000"+.@Name3$+"^000000";
mes "Então você será teleportado para prontera!!";
close2;
warp "prontera",150,150;
end;
}
}
}
kh_kiehl02 mapflag loadevent
louyang mapflag loadevent
job_wiz mapflag loadevent
Link to comment
Share on other sites
2 answers 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.