Jump to content
Sign in to follow this  
bugerman

Delete equipment on equipment slot

Recommended Posts

What function should i use so that i can delete or remove items from equipment slot. eg: Player died and his sword will be removed/deleted. Thank you

Edited by bugerman

Share this post


Link to post
Share on other sites

Hello @bugerman!

 

You can do something like this, please note that it will remove weapon from right slot.

 

GetChaItem(ATKER, 1, 6)

Codes for removing item:

	local Weapon = GetChaItem(ATKER, 1, 6)
	if Weapon == nil then
		return
	end
	local WeaponID = GetItemID(Weapon)
	local Quantity = 1
	if WeaponID == 1 then
		SystemNotice(ATKER, "Systes takes you "..Quantity.." ["..GetItemName(WeaponID).."] item!")
		RemoveChaItem(ATKER, WeaponID, Quantity, 1, 6, 2, 1)	
	end	

You can check equipment slots on iteminfo, after class requeriment column.


lelouch_signature_by_vahntheknight-d4uafwj.png

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Sign in to follow this  

×
×
  • Create New...