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

Lua position effect

titokere

Member
Joined
May 31, 2014
Messages
38
Reaction score
7
Hi i need help with this script

XXX function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
doPlayerSendTextMessage(cid, 19, "Use this ladder to enter the Adventurer's Outpost on Dawnport.")

end


i want to add this on the script:

XXX
sendMagicEffect(CONST_ME_BLOCKHIT)
But not in the sqm of the player!
i need add these effect in
({x = 32075, y = 31899, z = 5})
 
Code:
local pos = {x = 32075, y = 31899, z = 5}

function onStepIn(cid, item, position, fromPosition)
    if isPlayer(cid) then
        doPlayerSendTextMessage(cid, 19, "Use this ladder to enter the Adventurer's Outpost on Dawnport.")
        doSendMagicEffect(pos, CONST_ME_BLOCKHIT)
    end
    return true
end
 
Thanks going to test

doPlayerAddItem(cid, 2050, 1)
How i can add this item into the Backpack! not in the hands

Solved, Now last question! how i can add this doPlayerAddItem(cid, 2050, 1) to the hand? or ring slot?
 
Last edited by a moderator:
Back
Top