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) == [email protected]$[[email protected]])) {
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 [email protected]$[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)
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) == [email protected]$[[email protected]])) {
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 [email protected]$[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
Share this post
Link to post
Share on other sites