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

NPC Or Tile swaps 20 X Item for X Item ? :)

Rossii

Member
Joined
Mar 27, 2012
Messages
366
Reaction score
6
Location
England
Hi just wondering if anybody has a script NPC or TILE


TILE:
Step onto tile and it swaps XX Of item id~~~ for different item id~~

NPC:
Player; Hi
NPC: hi playername would you like to swap XX of item for a different item?
Player; Yes
Player; No
If yes swaps XX Of item for diff item
If no then says goodbye



Please i know a big request but would be great !!!!
REPS++


ONLY NEED TILE OR NPC NOT BOTH!
 
Something like this with the tile

Lua:
function onStepIn(cid, item, topos, frompos)
	local newItem, newCount = 4934, 20
	local oldItem, oldCount = 3439, 20
	if getPlayerItemCount(cid, oldItem) >= oldCount then
		doPlayerRemoveItem(cid, item, count)
		doPlayerAddItem(cid, newItem, newCount)
	end
end
 
Back
Top