Jump to content
  • 0

NPC Rental Items


behemothcze

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  102
  • Reputation:   2
  • Joined:  02/24/17
  • Last Seen:  

hello can anyone help me 

Im doing a 12v12 Event and i want to provide all the items and Supplies that it needs 
  
 what i need is An NPC that after i Summoned them in a Event Area they can Click the npc and get the items
      * all items that i can put and it will vanished after they leave a map or maybe after an hour ( like a rental items ) 
 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

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

prontera,155,181,5	script	Sample#rent	4_F_KAFRA1,{
	for (.@i = 0; .@i < .item_id_size; .@i++) 
		if (!countitem(.item_id[.@i]))
			rentitem .item_id[.@i], .rental_duration;
	end;
	
	OnInit:
		.rental_duration = 3600;
		setarray .item_id, 5001, 5002, 5003;
		
		.item_id_size = getarraysize(.item_id);
		end;
}

 

  • Upvote 1
  • Love 1
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...