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

Demon hunter outfit

shawntio

Member
Joined
Apr 14, 2008
Messages
737
Reaction score
5
Location
sweden
hi i wonder if it's possible to make that you get demon hunter outfit after completing inq like auto? Thanks!
 
Automatically? Yeah, when you go through the teleport that theres a magic wall.
You do it as RL with a magic wall? Or you do it with a singular TP?
 
Last edited:
huh? i don't understand when going out of inq via the tp in the quest room you'll get tp to the start so i wonder if it's possible to get demon hunter outfit when going out of the tp
 
I think this should work, add the TP the UniqueID you will set at movements.xml
XML:
<movevent type="StepIn" itemid="xxxx" event="script" value="demonh.lua" />

data/movements/scripts/demonh.lua
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
 
Wops, sorry!
XML:
<movevent type="StepIn" uniqueid="xxxx" event="script" value="demonh.lua" />
Yes, and then set that uniqueID in RME
 
Last edited:
didn't work i did set the unique id on the teleport and i movements.xml and i get an error in console
Code:
[06/12/2010 20:30:21] [Warning - MoveEvents::addEvent] Duplicate move event found: 2660
 
Ok i typed wrong in the code above, put it at movements.xml now.
XML:
<movevent type="StepIn" uniqueid="xxxx" event="script" value="demonh.lua" />
And dont set a destination for TP at RME, set it at script
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
 
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 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

Or try:
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) == 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
 
Back
Top