I want to give all player who join WOE have reward participant
i use this script, but still get error
this is the script
Spoiler
- script testing -1,{
OnPCMapLoadEvent:
if ((agitcheck() || agitcheck2()) && ( strcharinfo(3) == .@woemaps$[.@i])) {
set WoeReward, WoeReward +1; // set points
end;
}// Check if woe is on and if you entered a castle
OnAgitEnd:
if (WoeReward >= 30) {
getitem 14232,1; // reward
end;
set WoeReward, 0; // reset the points
}// if points is 15 or more get item
OnInit:
setarray .@woemaps$[0],"payg_cas03","prtg_cas03";
set WoeReward,0;
}
and this is the error
Spoiler
(02/15/2021 20:51:53) [ Error ] : buildin_setr: fatal error ! player not attached!
(02/15/2021 20:51:53) [ Debug ] : Function: set (2 parameters):
(02/15/2021 20:51:53) [ Debug ] : Data: variable name='WoeReward' index=0
(02/15/2021 20:51:53) [ Debug ] : Data: number value=0
(02/15/2021 20:51:53) [ Debug ] : Source (NPC): testing (invisible/not on a map)
(02/15/2021 20:51:53) [ Error ] : buildin_set: No player attached for player variable 'WoeReward'
(02/15/2021 20:51:53) [ Debug ] : Source (NPC): testing (invisible/not on a map)
Question
polong
I want to give all player who join WOE have reward participant
i use this script, but still get error
this is the script
- script testing -1,{
OnPCMapLoadEvent:
if ((agitcheck() || agitcheck2()) && ( strcharinfo(3) == .@woemaps$[.@i])) {
set WoeReward, WoeReward +1; // set points
end;
}// Check if woe is on and if you entered a castle
OnAgitEnd:
if (WoeReward >= 30) {
getitem 14232,1; // reward
end;
set WoeReward, 0; // reset the points
}// if points is 15 or more get item
OnInit:
setarray .@woemaps$[0],"payg_cas03","prtg_cas03";
set WoeReward,0;
}
and this is the error
(02/15/2021 20:51:53) [ Error ] : buildin_setr: fatal error ! player not attached!
(02/15/2021 20:51:53) [ Debug ] : Function: set (2 parameters):
(02/15/2021 20:51:53) [ Debug ] : Data: variable name='WoeReward' index=0
(02/15/2021 20:51:53) [ Debug ] : Data: number value=0
(02/15/2021 20:51:53) [ Debug ] : Source (NPC): testing (invisible/not on a map)
(02/15/2021 20:51:53) [ Error ] : buildin_set: No player attached for player variable 'WoeReward'
(02/15/2021 20:51:53) [ Debug ] : Source (NPC): testing (invisible/not on a map)
thank you for the support
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.