• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

potions

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
Code:
	doAddCondition(cid, exhaust)
	if(not potion.empty or config.removeOnUse) then
		doRemoveItem(item.uid, 1)
		return true
	end
	doRemoveItem(item.uid, 1)
     doPlayerAddItem(cid, potion.empty, 1)
	return true
end
its my script for stackable potions but
i need that if potion is in ground and i use it on me or target it transform to empty vial and no add empty vial to my backpack
 
LUA:
	doAddCondition(cid, exhaust)
	doChangeTypeItem(item.uid, item.type - 1)
	if fromPosition.x == CONTAINER_POSITION then
		doPlayerAddItem(cid, potion.empty, 1)
	else
		doCreateItem(potion.empty, 1, fromPosition)
	end
	return true
end
 
Back
Top