Jump to content
  • 0

WOE participant reward


polong

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  03/14/19
  • Last Seen:  

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)


thank you for the support

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   35
  • Joined:  07/04/19
  • Last Seen:  

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;

}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  03/14/19
  • Last Seen:  

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

 

Link to comment
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...