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
need support how to add bonus stats each player.
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
kangfredy
im sory my english is bad.
firstly i want to ask how to add bonus stats each player.
from my script.i try in setarray and add on setwall is not work.and eror..o_Oa...so?how to add setarray $@Race_stats_X1[0],bDex,15; dll in this script?
OnPCLoginEvent:
sleep2 1;
warp $@Race_Select$,$@Race_Select_X[RID_Race],$@Race_Select_Y[RID_Race];
end;
OnInit:
set $@Race_Num,2;
set $@Race_Select$,"guild_room";
setarray $@Race_Select_X[0],117,117,117;
setarray $@Race_Select_Y[0],2,23,47;
setarray $@Race_XY_X[0],-1,-1,-1,2;
setarray $@Race_XY_Y[0],1,-1,0,0;
setarray $@Race_Wall_stye[0],6,6,1,2;
setarray $@Race_Wall_stye_2[0],6,6,1,1;
setarray $@Base_race$[0],"gonryun","lighthalzen";
setarray $@Base_race_X[0],159,158;
setarray $@Base_race_Y[0],159,90;
setarray $@Race_stats_X[0],bStr,15;
setarray $@Race_stats_X1[0],bDex,15;
setarray $@Race_stats_X2[0],bVit,15;
setarray $@Race_stats_Y[0],Bint,15;
setarray $@Race_Stat_Y1[0],Bluk,15;
setarray $@Race_Stats_Y2[0],Bdex,15;
for(set .op,0;.op<($@Race_Num+1);set .op,.op+1){
for(set .op2,0;.op2<4;set .op2,.op2+1){
delwall "Race_Wall"+.op+"KK"+.op2;
setwall $@Race_Select$,($@Race_Select_X[(.op)]+$@Race_XY_X[.op2]),($@Race_Select_Y[(.op)]+$@Race_XY_Y[.op2]),$@Race_Wall_stye_2[.op2],$@Race_Wall_stye[.op2],$@Race_stats_X[.op2],0,"Race_Wall"+.op+"KK"+.op2;
}
}
if(!getusers(7)){
while(.iq<$@Race_Num){
set .iq,.iq+1;
setd "$Race_God_"+.iq+"_ID",0;
}
}
set .iq,0;
end;
}
guild_room,118,2,4 script Race_God_0 990,{
mes "selamat datang di Holywar RO.silahkan pilih ras mana yang kamu pilih";
if(select("[Hades]","[Athena]","[Close]")==3){close;}
set RID_Race,@menu;
warp $@Race_Select$,$@Race_Select_X[@menu],$@Race_Select_Y[@menu];
close;
}
guild_room,0,0,4 script Race_God_1_1 139,{
end;
OnInit:
waitingroom "Click sini",30,strnpcinfo(0)+"::OnRaceJoin",1;
end;
OnRaceJoin:
set .i,(strnpcinfo(0)=="Race_God_2"?1:0);
if(!getd("$"+strnpcinfo(0)+"_ID")){
setd "$"+strnpcinfo(0)+"_ID",waitingroom2bg($@Base_race$[.i],$@Base_race_X[.i],$@Base_race_Y[.i],"","");
}else{
waitingroom2bg_single getd("$"+strnpcinfo(0)+"_ID"),$@Base_race$[.i],$@Base_race_X[.i],$@Base_race_Y[.i],$@Race_stats_X[.i],strnpcinfo(0);
}
warpwaitingpc $@Base_race$[.i],$@Base_race_X[.i],$@Base_race_Y[.i];
end;
}
Link to comment
Share on other sites
0 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.