Jump to content
  • 0

Request a script for Novice training ground


lengchaileo

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

when character lvl < 10 give item A

when character lvl between 11 - 20 give item B and delete item A

 

Thanks for reading

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  116
  • Reputation:   4
  • Joined:  01/11/12
  • Last Seen:  

new_1-3,100,52,4	hadghadf	729,{
	if (BaseLevel < 11 || rcvitem = 0){
	getitem 501,1;	//item A
	set rcvitem,1;
	end;
	}
	if (BaseLevel > 10 || rcvitem2 = 0){
	getitem 502,1;	//item B
	delitem 501,1;	//delete item A
	set rcvitem2,1;
	end;
	}
	mes "[NPC]";
	mes "You have received the items available for your level";
	close;
}

try this one, I can't check it so just tell me the errors you'll get.

added a check so players can't abuse the item you are giving them (talking to npc many times)

edit to your preference.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

thanks for ur script, it have a little bit bug but i will fix it up..

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