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

Linux POi script

hasbro

Member
Joined
Feb 15, 2009
Messages
286
Reaction score
6
Good part of the poi is where the stone has to remove it goes nowhere with it can not really climb the ladder

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    removals = {
        { item = 1304, pos = { x = 32849 , y = 32282 , z = 10 } },   
    }
    local poss = { x = 32849 , y = 32282 , z = 10 }
    if item.itemid == 1945 then
        for i = 1, #removals do
            removals[i].pos.stackpos = 1
            doRemoveItem(getThingfromPos(removals[i].pos).uid, 1)
			doSendMagicEffect(poss,2)
        end
        doTransformItem(item.uid, item.itemid + 1)
    elseif item.itemid == 1946 then
        for i = 1, #removals do
            doCreateItem(removals[i].item, 1, removals[i].pos)
			doSendMagicEffect(poss,2)
        end
		poss.stackpos = 253
		if getThingFromPos(poss).itemid > 0 then
		doMoveCreature(getThingFromPos(poss).uid, EAST)
		end
        doTransformItem(item.uid, item.itemid - 1)
    end
    return TRUE
end
 
try
LUA:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=443, y=427, z=9, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 3007 and item.itemid == 1945 and getgate.itemid == 1304 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 3007 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1304,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end

or

LUA:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=348, y=446, z=8, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.itemid == 1409 then
doTeleportThing(cid, gatepos)
doSendMagicEffect(gatepos, 10)
end
return 1
end
 
Back
Top