View difference between Paste ID: s08Jk9Lc and uB5MTYTZ
SHOW: | | - or go back to the newest paste.
1
local cfg = {
2
	fireBug = 5468,
3
	teleportPos = {x = 500, y = 400, z = 7},
4
}
5
6
function onUse(cid, item, frompos, item2, topos) 
7
8
	if item2.itemid == cfg.fireBug then
9
		doTeleportThing(cid, cfg.teleportPos)
10
			doSendAnimatedText(getCreaturePosition(cid), "PERMISSION", math.random(1, 30))
11-
		end
11+
				doRemoveItem(item.uid, 1)
12-
			return true
12+
			end
13-
		end
13+
				return true
14
			end