• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] 2 Teleport Scripts

splifus

New Member
Joined
Oct 18, 2007
Messages
122
Reaction score
3
Location
Canada
Hello,
I need the following script:

First one:

My quest is only a boss to kill, people most run a long way before they reach the boss room. Once in the room, they can leave the room if they are about to die and get back to entrance. I want a script which when the boss die, that teleport is removed and another one is added and when people enter this new teleport, every player that step on it get a storage value "xxx" and after 2 minute the first teleport which doesnt give storage reappear and the other one disapear.


Second one:

There's a teleport in the city which teleport people to that boss room but to be able to use this "faster way", they most have killed the boss once and used that new teleport(to get a storage).


So I guess it's all about storage but I got no clue how to do such things.

I hope you will understand what I mean and help me out.

Ofcourse REP+++++++ if you can do this.
Timax25,

EDIT: I don't know if it's easier to understand like this

---- Boss Room ----
A normal teleport which lead to entrance of my quest (if player are about to die they can escape)
-- <boss is killed by a player/team> --
The normal teleport disappear and the one (which give storage value) is created
-- After 2 minutes, that special teleport disappear and the "normal" one is created back --
(that teleport which give storage value add storage to every player which are able to get in the teleport in the allowed time)

---- Shorter way teleport ----
-- If a player havent killed the boss yet, they got tped away with a "xxx" message --
-- If a player have killed the boss already but feel like hunting it, he get teleported to my boss room --
 
Last edited:
I tried to do the second one myself, Please don't flame me this is my very first script which I do myself

Code:
local newpos = {x=xxx, y=xxx, z=xx} 
local newpos1 = {x=xxx, y=xxx, z=xx}
local text = "You did not achieve the quest"

function onStepIn(cid, item, position, fromPosition)

if item.uid == 9075 and	getPlayerStorageValue(cid, 9075) then
    doTeleportThing(cid, newpos)
else
 doPlayerSendCancel(cid, text)
 doTeleportThing(cid, newpos1)
       end
end


All happen is even if my player doesnt have done the quest they get teleported, it doesnt check the storage value. Can someone explain me what I did wrong?? so I could understand my mistake
 
Back
Top