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

[Action ] CheckItem Plx [Fixed]

Evangelion

New Member
Joined
May 8, 2008
Messages
13
Reaction score
0
Function.

The player must be in a certain position if he is thus not did not drive the swicht

The item must be on a coal basin, which this in the floor. (tile + coal basin + ItemID)

it already places different stackpos but it follows without working

If make the script and work i put ++Rep :)

Lua:
-- Fixed By Me

function onUse(cid, item, fromPosition, itemEx, toPosition)

local piecePos = {x=94, y=139, z=7, stackpos=2} -- Position of the Item
local piece = getThingfromPos(piecePos)
queststatus = getPlayerStorageValue(cid,6969) 

        if (item.itemid == 1945) and (item.uid == 9001) then
           if (queststatus == -1) then
                if (piece.itemid == 2431) then   -- itemid 2431 stonecutter axe 
                                doRemoveItem(piece.uid, 1)
                                doPlayerAddOutfit(cid,147,1)  -- Female Outfit
                                doPlayerAddOutfit(cid,143,1)  -- Male Outfit
                      		setPlayerStorageValue(cid,6969,1)
                      		doPlayerSendTextMessage(cid,22,"Ahora tienes el Barbarian addon.") -- message . do you have the barbarian addon
                                doSendMagicEffect(getCreaturePosition(cid) ,10)
                                doTransformItem(item.uid,item.itemid+1)
                else
                        doPlayerSendCancel(cid, "La SCA debe estar sobre el coal basin.")  -- message . the item its not in the position correctly 
                end
                else
                        doPlayerSendCancel(cid, "Ya tienes este Addon.") -- message . do you already this addon
                end
        elseif (item.itemid == 1946) then
                doTransformItem(item.uid,item.itemid-1)
                doSendMagicEffect(fromPosition, CONST_ME_POFF)
        end
        return TRUE
end
 
Last edited:
Back
Top