Jump to content
  • 0

Autotrade no reward


Fresh prince

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Hello rathena,

Could someone please edit this and make autotraders(vendors) NOT receive a reward once the the woe ends.

Thanks

http://pastebin.com/raw.php?i=5z6edTq2

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

if (isloggedin(.@acc[.@j],.@char[.@j])) { 

change tot his

if (isloggedin(.@acc[.@j],.@char[.@j]) && !checkvending( rid2name(.@acc[.@j]) ) ) { 
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Tried Sir Emistry edit but threw me an error and Still gave me prize. What about if there is an @afk command and used it? how can we prevent them receiving rewards after woe? 

 

Thanks you rathena

Edited by Fresh prince
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

Maybe try it like...

					if (isloggedin(.@acc[.@j],.@char[.@j])) { 
						if ( !checkvending( rid2name(.@acc[.@j]) ) ) {
							for(set .@k,0; .@k<getarraysize(.Reward); set .@k,.@k+2)
								getitem .Reward[.@k], .Reward[.@k+1], .@acc[.@j];
							message rid2name(.@acc[.@j]),"You have been rewarded for conquering "+getcastlename(.Castles$[.@i])+"."; } } } }
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Tried Sir Emistry edit but threw me an error and Still gave me prize. What about if there is an @afk command and used it? how can we prevent them receiving rewards after woe? 

 

Thanks you rathena

depend on how your @afk work, sone minor modification would be needed.

 

 

 

@skorm

haha , I totally forgotten that offline char will caused the invalid rid message to spam xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Thanks Sir Emistry and Sir Skorm!

Edited by Fresh prince
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...