• 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) TP after the fight

Fillzy

New Member
Joined
Nov 4, 2008
Messages
4
Reaction score
0
I hope this is the right place,

Anyways, I want to force the player to battle a monster in a closed area, and after he is done he would be able to teleport outside the room,
or
After he is done a wall would disapear so he would be able to leave the room.
can someone help me with that?
I hope this is clear


Thanks
 
You can find this elsewhere! SEARCH HARDER MY FRIEND!

OtLand kind of has an unsaid law of the land where if a member can't properly use the search function to find stuff then the people who know what they are doing scripting/etc do not really tend to help somebody incapable of caveman like mechanics. (Not trying to call you stupid)

Anyways...!

Here is a script i edited for this exact reason (credits got darkaos used his script)

--
monster_room.lua
LUA:
function onDeath(cid, corpse, killer)
 
registerCreatureEvent(cid, "monster_room_script") --- Name of your creature event line 
 
local creaturename = getCreatureName(cid)
local in_pos = {x=XXXXXX, y=XXXXXX, z=XXXXXX, stackpos=2} --- Position where tp is created
local checkIID = getThingfromPos(in_pos)
local to_pos = {x=XXXXXX, y=XXXXXX, z=XXXXXX, stackpos=1} --- To position tp leads player
local time_to_pass = XXXXXX -- in seconds
local tpID = 1387 --- Don't change

if creaturename == 'XXXXXX' then --- Name of your creature
 
teleport = doCreateTeleport(tpID, to_pos, in_pos)
 
doSendMagicEffect(in_pos, CONST_ME_TELEPORT)
 
doCreatureSay(cid, "You have 60 seconds to enter the teleport before it is closed.", TALKTYPE_ORANGE_1)
addEvent(removeTeleport, (1000*time_to_pass))


end
end

And add this in creature scripts
LUA:
<event type="death" name="monster_room_script" script="monster_room.lua"/>

If it doesn't work don't be surprised.. I'm EXTREMELY new to scripting.

Also, credits to Darkhaos as I only edited his script.
--
 
Well, I found this script before to be honest, tested and it didn't work, that's why I asked for help..
But thanks anyway,
do you have a solution for this? I tried some stuff, but still didn't work..
 
Furthermore, you posted in the wrong section. This belongs in requests, but if you tried another script and it didn't work you should have posted that in support (best chance of getting help).
 
Thanks for all the comments and tips.

Yes TGYoshi, I did change all the settings.
One error I've got, but I didnt see it before tho:
[Warning - Event::loadScript] Event onCombat not found Cannot load Script <data/creaturescripts/scr...

I tried maximazing the window to see the rest but it won't work..sorry I'm completely new to this, I'm trying to learn things my own, I do everything I can but sometimes I just need help..
 
I don't understand why you can't see the rest of the error. If you have that problem you are never going to ever get any script to work if there are errors.. and believe me .. there will be errors.


I can't help if you can't show me the entire error... I'm fairly new at this too but i can give it a swing with the proper information.
 
i understand fillzy, i've been posting like twice per week asking for help even posted 3 thread of paying some1 that could give me some help for 20$ but none cares at all :D


edit: btw lots of help and ppl saying that he is new but tryed to make script bla bla bla but nobody said a shit about wich tfs version was he using, cus depending on the version it has to be made on a way or another. wtf and im new on this
 
Back
Top