Jump to content
  • 0
polong

WOE participant reward

Question

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)


thank you for the support

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try this

-    script    testing    -1,{

OnPCMapLoadEvent:
if ((agitcheck() || agitcheck2()) && ( strcharinfo(3) == .@woemaps$[.@i]))
  set WoeReward, WoeReward +1; // set points
// Check if woe is on and if you entered a castle
end;

OnAgitEnd:
if (WoeReward >= 30) { 
  getitem 14232,1; // reward
  set WoeReward, 0; // reset the points
}// if points is 15 or more get item
end;
  
OnInit:
setarray .@woemaps$[0],"payg_cas03","prtg_cas03";
end;

}

Share this post


Link to post
Share on other sites
  • 0

i'll try this at next woe
thanks for your support

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.