• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action [request Help] whit my poi action

Mummrik

Hey!
Joined
Oct 22, 2007
Messages
707
Solutions
28
Reaction score
128
Location
Sweden
as some of you already know you need an vial of blood to get down to the pits of inferno, and im not so skilled at lua scripts (im learning)

so can anyone help me what is wrong whit this code

PHP:
local newpos = {x=32791, y=32334, z=10}
local blood = {x=32791, y=32333, z=9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.uid <= 3056 or itemEx.actionid > 0) and (itemEx.itemid == 1409) then
		doTeleportThing(cid, newpos)
		doSendMagicEffect(newpos,10)
		doSendMagicEffect(blood,0)
	end
end

i did get it to work whit an empty vial using this in actions.xml
so im sure the problem is there since everything on the script up did work as i should
PHP:
	<action itemid="2006" script="poi/gravestonepoi.lua"/>

so what do i need to put in actions.xml?
 
blood.itemid == 2016 and blood.type == 2

Code:
local newpos = {x=32791, y=32334, z=10}
local blood = {x=32791, y=32333, z=9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid and blood.itemid == 2016 and blood.type == 2 then
        doTeleportThing(cid, newpos)
        doSendMagicEffect(newpos,10)
        doSendMagicEffect(blood,0)
    end
end
 
Back
Top