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

a problem! T.T

Liikuid

Spin Machine!
Joined
Jul 17, 2010
Messages
257
Reaction score
24
Location
Iquique, Chile
ok that's the script...

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        local getitem = getTileItemById({x=552, y=636, z=9}, 6548).uid
        local wallchk = getTileItemById({x=547, y=641, z=9}, 1387).uid
        local wallchk2 = getTileItemById({x=547, y=641, z=9}, 1491).uid
	local elftp_in_position = {x=547, y=641, z=9}
	local elftp_to_position = {x=160, y=55, z=7}

        if item.itemid == 1945 and getitem > 0 and wallchk > 0 then
                doSendMagicEffect({x=552, y=636, z=9}, CONST_ME_POFF)
                doSendMagicEffect({x=547, y=641, z=9}, CONST_ME_ENERGYHIT)
                doSendMagicEffect({x=547, y=641, z=9}, CONST_ME_TELEPORT)
                doRemoveItem(getitem)
                doRemoveItem(wallchk)	
                doRemoveItem(wallchk2)	
                doTransformItem(item.uid, 1946)
		doCreateTeleport(5023, elftp_to_position, elftp_in_position)
		doCreatureSay(cid, 'You have 1 minute!', TALKTYPE_ORANGE_1)
		addEvent(doCreateItem, 60000, 1354, 1,{x=547, y=641, z=9})
		addEvent(doRemoveItem, 60000, 5023, 1,{x=547, y=641, z=9})
        elseif item.itemid == 1946 then
                doTransformItem(item.uid, 1945)
        else
                doPlayerSendCancel(cid, 'You need to place a Violet Sulphur.')
        end
        return true
end

1354 = Stone
5023 = Magic Forcefield...

the stone appears but the magic forcefield not dissapears...

i try stackpos=1, 255, etc...

Help!
 
Back
Top