LUA:
function onUse(cid, item, fromPosition, itemEx, topos)
local newPosition = {x = 32604, y = 31340, z = 11}
if item.uid == 2000 and item.itemid == 7131 then
doSendMagicEffect(getThingPos(cid), CONST_ME_POOF)
doTeleportThing(cid, newPosition, TRUE)
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
end
end
LUA:
function onUse(cid, item, fromPosition, itemEx, topos)
local newPosition = {x = 32601, y = 31504, z = 13}
if item.uid == 3000 and item.itemid == 7131 then
doSendMagicEffect(getThingPos(cid), CONST_ME_POOF)
doTeleportThing(cid, newPosition, TRUE)
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
end
end
These 2 scripts are suppose to be for Beregar mines carts, but i think it would be better to have 1 script rather than 2.
So if someone could put this into one script, that'd be great
Thanks in Advance x x