Obsdark
Member
- Joined
- Sep 25, 2011
- Messages
- 213
- Reaction score
- 9
¡Hey oh!
I have this Toll script, who works like a teleport bridge, or must work i must say, because acualy is not teleporting nobody to the coords it must. i don't know why is not working, can someone check it and tell me what's wrong?
Thanks to all of you Since now, Honestly
¡¡Bless you and Cheers up!!
(Y)(Y)
-Obsdark-
I have this Toll script, who works like a teleport bridge, or must work i must say, because acualy is not teleporting nobody to the coords it must. i don't know why is not working, can someone check it and tell me what's wrong?
LUA:
local table = {
[{x = 3021, y = 3084, z = 8}] = {pos={x = 3017, y = 3085, z = 8}, price = 20, cCount = 5, cPos = {x= 3026, y= 3072, z= 8}, dPos ={x= 3023, y= 3072, z= 8}},
[{x = 3017, y = 3084, z = 8}] = {pos={x = 3021, y = 3085, z = 8}, price = 20, cCount = 5, cPos = {x= 3026, y= 3072, z= 8}, dPos ={x= 3023, y= 3072, z= 8}},
}
function onUse(cid, item, fromPos, itemEx, toPos)
if item.itemid == 1946 then
doTransformItem(item.uid, 1945)
return true
end
local Money = getPlayerMoney(cid)
for k, v in pairs(table) do
if getThingPos(item.uid) == k and Money >= (v.price + v.cCount) then
if doPlayerRemoveMoney(cid, (v.price + v.cCount)) then
doTeleportThing(cid, v[1])
doCreateItem(2148, v.price, v.cPos)
doCreateItem(2148, v.cCount, v.dPos)
else
doPlayerSendCancel(cid, "You dont have the required gold.")
end
end
end
return true
end
Thanks to all of you Since now, Honestly
¡¡Bless you and Cheers up!!
(Y)(Y)
-Obsdark-
Last edited:
