• 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!

Walk on tile remove count 300 item id get newtype outfit.

GOD Wille

Excellent OT User
Joined
Jan 11, 2010
Messages
2,826
Solutions
2
Reaction score
815
Location
Sweden
Title is wrong
Walk on tile remove count 300 item id get newtype outfit.

V this is what i want

Hi im planning on make a outfit shop when u push lever u get newtype "X" and removes 300 of item id of gold nuggets. if u already have the newtype it stays: you cant buy this, you already have this outfit. and if not enough of item id it stays: you dont have enough money to buy this outfit.
Thanks
 
Last edited:
Title is wrong

V this is what i want

Hi im planning on make a outfit shop when u push lever u get newtype "X" and removes 300 of item id of gold nuggets. if u already have the newtype it stays: you cant buy this, you already have this outfit. and if not enough of item id it stays: you dont have enough money to buy this outfit.
Thanks

Set the lever's actionid to the looktype you want and this script will add this looktype (actionid) if you have 300 nuggets and don't have the outfit already.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerItemCount(cid, 2157) >= 300 and getPlayerStorageValue(cid, item.actionid) < 1) then
		doPlayerRemoveItem(cid, 2157, 300)
		setPlayerStorageValue(cid, item.actionid, 1)
		doPlayerAddOutfit(cid, item.actionid, 0)
	else
		doPlayerSendCancel(cid, "You either have this outfit or don't have enought money to buy it.")
	end
	return true
end
 
Back
Top