<movevent type="StepIn" itemid="xxxx" event="script" value="demonh.lua" />
local addon = 288
local storage = 50000
function onStepIn(cid, item, pos)
ppos = getPlayerPosition(cid)
if getCreatureOutfit(cid) == 0 and getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid,addon,3)
setPlayerStorageValue(cid,storage,1)
doSendMagicEffect(ppos,math.random(1,50))
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You now have demonhunter outfit full!")
else
doPlayerSendCancel(cid,"You already have this addon!")
end
end
[06/12/2010 20:30:21] [Warning - MoveEvents::addEvent] Duplicate move event found: 2660
<movevent type="StepIn" uniqueid="xxxx" event="script" value="demonh.lua" />
local addon = 288
local storage = 50000
local position = {x=EDIT, y=EDIT, z=EDIT} --- Where tp will lead
function onStepIn(cid, item, pos)
ppos = getPlayerPosition(cid)
if getCreatureOutfit(cid) == 0 and getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid,addon,3)
setPlayerStorageValue(cid,storage,1)
doSendMagicEffect(ppos,math.random(1,50))
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You now have demonhunter outfit full!")
doTeleportThing(cid,position)
else
doPlayerSendCancel(cid,"You already have this addon!")
end
end
local addon = 288
local storage = 50000
local position = {x=EDIT, y=EDIT, z=EDIT} --- Where tp will lead
function onStepIn(cid, item, pos)
ppos = getPlayerPosition(cid)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid,addon,3)
setPlayerStorageValue(cid,storage,1)
doSendMagicEffect(ppos,math.random(1,50))
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You now have demonhunter outfit full!")
doTeleportThing(cid,position)
else
doPlayerSendCancel(cid,"You already have this addon!")
end
end
local addon = 288
local storage = 50000
local position = {x=EDIT, y=EDIT, z=EDIT} --- Where tp will lead
function onStepIn(cid, item, pos)
ppos = getPlayerPosition(cid)
if getCreatureOutfit(cid) == addon and getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddOutfit(cid,addon,3)
setPlayerStorageValue(cid,storage,1)
doSendMagicEffect(ppos,math.random(1,50))
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You now have demonhunter outfit full!")
doTeleportThing(cid,position)
else
doPlayerSendCancel(cid,"You already have this addon!")
end
end
Thanks now it's working rep!