A 2 days ago i started a new script for a server i play, but, im a little "newbie" at it, so, somethings dont happen as we want...
The script r working and im get 0 mapserver errors with, but, a little part of the script (one of most important) isnt work!
Edit: I want the script "kick" players in the listed maps when they reach the max level that i set for each one. (Currently script simple kick everyone that reach the lvl in a world-wide maps.)
Here the full code:
Spoiler
Full script content removed.
And here the part of scripting that i have no idea how to make it work:
Spoiler
//================================================================================================//// ==================================== NPC Padrao % Feats ====================================////================================================================================================- script OnFeatures-1,{OnInit:
setarray .blvl$[0],111,121,131,141,151,161;.blvl = getarraysize(.blvl$);for(.@i=0;.@i<.blvl;.@i++){.@blvl$=.blvl$[.@i];}
end;
setarray .maps$[0],"moc_fild04","moc_fild05","moc_fild06","moc_fild08","moc_fild09","moc_fild10","moc_fild14","moc_fild15";.maps = getarraysize(.maps$);for(.@i=0;.@i<.maps;.@i++){.@map$=.maps$[.@i];
setmapflag .@map$,mf_loadevent;}
end;OnPCLoadMapEvent:for(.@i=0;.@i<.maps;.@i++){if(strcharinfo(3)==.maps$[.@i]){
mes "[^ff0000Ajudante^000000]";
mes "Bom up!";
close2;
percentheal 100,100;
sc_start SC_FOOD_STR_CASH,36000000,7;
sc_start SC_FOOD_AGI_CASH,36000000,7;
sc_start SC_FOOD_INT_CASH,36000000,7;
sc_start SC_FOOD_VIT_CASH,36000000,7;
sc_start SC_FOOD_DEX_CASH,36000000,7;
sc_start SC_FOOD_LUK_CASH,36000000,7;}}
end;OnPCBaseLvUpEvent:for(.@i=0;.@i<.blvl;.@i++){if(strcharinfo(3)==.maps$[.@i]&&BaseLevel==.@blvl$[.@i]){
initnpctimer;
mes "[^ff0000Alerta^000000]";
mes "Voce alcançou o nivel maximo";
mes "desse mapa!";
mes " ";
mes "Voce sera teleportado em 5 segundos!";OnTimer5000:
stopnpctimer;
mes "[^ff0000Alerta^000000]";
mes "Ate mais!";
detachnpctimer;
warp "prontera",157,173;
end;}}}- script Manager::Ajudante-1,{
mes "[^ff0000Ajudante^000000]";
mes "Em que posso ajudar?";if(select("~ Quero me Buffar!:~ Quero voltar!")){
mes "[^ff0000Ajudante^000000]";
mes "Ok... La vai!";
close2;
sc_start SC_FOOD_STR_CASH,18000000,7;
sc_start SC_FOOD_AGI_CASH,18000000,7;
sc_start SC_FOOD_INT_CASH,18000000,7;
sc_start SC_FOOD_VIT_CASH,18000000,7;
sc_start SC_FOOD_DEX_CASH,18000000,7;
sc_start SC_FOOD_LUK_CASH,18000000,7;}else{
mes "[^ff0000Ajudante^000000]";
mes "Certo, volte sempre!";
close2;
warp "prontera",157,173;}
end;}
Thx for all will try to help me and pls ignore the language of script(and my english lol).
Question
Rizta
A 2 days ago i started a new script for a server i play, but, im a little "newbie" at it, so, somethings dont happen as we want...
The script r working and im get 0 mapserver errors with, but, a little part of the script (one of most important) isnt work!
Edit: I want the script "kick" players in the listed maps when they reach the max level that i set for each one. (Currently script simple kick everyone that reach the lvl in a world-wide maps.)
Here the full code:
Full script content removed.
And here the part of scripting that i have no idea how to make it work:
Thx for all will try to help me
and pls ignore the language of script(and my english lol).
Edited by Riztaforget some details
Link to comment
Share on other sites
11 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.