equero
New Member
- Joined
- Feb 22, 2013
- Messages
- 51
- Reaction score
- 1
Hello.
I have just read these post and nothing works.
I mean teleport's not showing after monster kill.
Can someone resolve this problem. I'm done...
I have found on my old server this code but he does not work tho.
sorry for my english
I have just read these post and nothing works.
CreatureEvent - Creating teleport after monster dies.
This idea comes from darkhaos I suppose. This can be used for different events, not only inquisition quest, you can simply edit it to your needs. data/creaturescripts/inquisition.lua: local config = { message = "Go into the teleporter in 3 minutes, else it will disappear.", timeToRemove =...
otland.net
[REQUEST]After Kill Teleport Appears
Hello, So im going straight to details. USING TFS 1.2 8.60 After you kill monster with name "Test 1" teleport appears for 5 minutes and it teleports you to x,y,z. After 5 minutes passes that teleport disappears. It should have condition to kill multiple monsters for teleport be able to appear...
otland.net
Lua - Inquisitor Boss-kill teleport problem
Hello, My friend is running TFS 0.4 and he asked me to fix his Inquisitor quest. Because the teleport didn't show up after killing the bosses. I tried for awhile but due to my lack of experiance with codelanguages i came up short. so i'm making a post here now. This is the Creaturescript/Script...
otland.net
Can someone resolve this problem. I'm done...
I have found on my old server this code but he does not work tho.
sorry for my english
Lua:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Grand War Golem")
local creaturename = getCreatureName(cid)
--- place where tp will be created
local pos1 = {x=788, y=1213, z=10, stackpos=2}
--- position to teleport?:
local pos2 = {x=796, y=1242, z=7, stackpos=1}
local time_to_pass = 180 -- time to disappear
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "Done! You got 3 mins.."
if creaturename == 'Grand War Golem' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
end
end
function removeTeleportInBossWard()
--- place where tp will be created
if getThingfromPos({x=788, y=1213, z=10, stackpos=1}).itemid == 5023 then
--- miejsce gdzie tp zostanie utworzone
doRemoveItem(getThingfromPos({x=788, y=1213, z=10, stackpos=1}).uid,1)
--- place where tp will be created
doSendMagicEffect({x=788, y=1213, z=10, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
XML:
<event type="death" name="Grand War Golem" script="grand war golem.lua"/>