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

Solved [HOW]Only players that made the quest can enter?

Elox

http://elox.se/
Joined
Jul 5, 2008
Messages
624
Reaction score
2
Location
Sweden, Fagersta
Going to make a quest, the reward of the quest will be that you can enter a room.

I need some sort of teleport or door that only allows players with a certain storagevalue/quest can enter.
Can't get it to work.


I tried to to do like this..
Code:
local pos = {x=511, y=380, z=6}

function onUse(cid, item, fromPosition, itemEx, toPosition)
queststatus = getPlayerStorageValue(cid,1013)
if queststatus == 1 then
    doTeleportThing(cid, pos, TRUE)

return TRUE
end
..but that didn't work, I'm not good at scripting so I need your help (only got COPY&PASTskillz)

So anyone got an idea? As I said does not have to be a teleport script can also be some sort of door.

-EDIT-

Solved it myself.
 
Last edited:
u shud make a teleport after this door but make alot of monsters soo they cant rush it
i dont think its possible to teleport u after this quest i mean u need a swich or smthin like annihilator or smthin like that
well my opinion would be make a little way soo 1 person can go first max and the lastest monster shud me a orshabaal or smthin (hardest monster).
give me a reputation if u helped
 
There won't be any monsters in that room. It's like a reward room.
Never mind solved it myself anyway. Thanks for tyring to help :) <3

np np
but make some monsters to slay and it drops 100% a good item
uhm.. like ANNI but for custom vocations

make monsters like u need tank
sioer and 2 shooters (Paladin and Sorc)

soo it will be like
4 items
2 mage stuff and some thing for paladin and knight :D
 
On movement.xml
add this line..
Code:
<movevent event="StepIn" itemid="ITEM ID!!!" script="YOURSCRIPFILE.lua"/>

and this on movement/script

Code:
function onStepIn(cid, item, pos, frompos)
if isPlayer(cid) == TRUE and item.actionid == 400 and getPlayerStorageValue(cid,1013) == 1 then
doTeleportThing(cid, {x=511, y=380, z=6})
doPlayerSendTextMessage(cid,22,"You are now on the inside of the quest.")
else
doPlayerSendTextMessage(cid,22,"Sorry but you don't deserv to enter on this quest.")
doTeleportThing(cid, frompos)
end
end

Ok leme explain it a bit thats should work like you are walking and see a special ground floor and you walk on it and tada it's teleport you!!

NOTE: The ground need to have action id 400

oh and i don't tested it so i'm not sure if it's work
 
On movement.xml
add this line..
Code:
<movevent event="StepIn" itemid="ITEM ID!!!" script="YOURSCRIPFILE.lua"/>

and this on movement/script

Code:
function onStepIn(cid, item, pos, frompos)
if isPlayer(cid) == TRUE and item.actionid == 400 and getPlayerStorageValue(cid,1013) == 1 then
doTeleportThing(cid, {x=511, y=380, z=6})
doPlayerSendTextMessage(cid,22,"You are now on the inside of the quest.")
else
doPlayerSendTextMessage(cid,22,"Sorry but you don't deserv to enter on this quest.")
doTeleportThing(cid, frompos)
end
end

Ok leme explain it a bit thats should work like you are walking and see a special ground floor and you walk on it and tada it's teleport you!!

NOTE: The ground need to have action id 400

oh and i don't tested it so i'm not sure if it's work

Thanks that's much better than my solution.
I'll try it and see if it works! :)
 
Back
Top