Jump to content
  • 0

Somebody fix my very simple reward script?


c2greentea

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

This is my "onlogin" reward giver script: http://upaste.me/r/bf5014868cc27d197

 

My request is that it must only give rewards for example from account IDs 200000 until 2003000. 

 

And question, if they are overweight, what would happen? Will the script continue to give the items and the excess items will just drop, or it wont show for the player at all until he logs in a character that is not overweight?

 

Please help willing to tip. TY

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  

-	script	LoginReward	-1,{

OnPcLoginEvent:
        if(getcharid(3) > 2002999) end;
        if(!checkweight(7608,5)) { dispbottom "Make space to claim your reward!"; end; }
	if(#lreward != 1){
	mes "You shall receive extra freebies for spontaneous disconnections happening in the server lately. We are already investigating the issue. Thank you!";
	next;
	getitem 7608,5;
	set #lreward, 1;
	close;
	}
}

I didn't test it so test it on your local server for sure.

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...