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

Lightning Effect/Explosion Then Teleport

ArkSeyonet

Chancho
Joined
Nov 11, 2008
Messages
201
Reaction score
11
[FINAL UPDATE]

http://www.youtube.com/watch?v=DwalyoK91tk
^ IT IS NEW ^ HD

I have finished the script, and everything that I am going to show the public.
It IS different now, so don't feel like your going to watch the same thing. =]


Code:
--Player walks into portal after venturing through a deep and dark dungeon.
--Upon entering the portal, he appears at a beautiful garden. Everything is akward, but seems not very dangerous.
--As the player walks through the garden, the screen flashes a few times.
--When the player reaches the end of the garden, (basically when stepping on X tile) the screen flashes and suddenly there is a huge explosion.
--The player then notices a boss monster (not hostile yet, could make an npc to be honest, there are many ways to do this) has appeared, and is coming towards him.
--All of a sudden, another explosion, and the environment is trashed. (the player would be getting teleported to a new place that looks like the old one except destroyed and crap.
--The boss then appears(is spawned), and the fight begins.

It's all solved now. But feel free it look at the video and tell me what you think!
It's not finished, because the mapping is not done, but when I do finish, I will upload the final video.

But here:

<movements.xml>
Code:
<movevent type="StepIn" itemid="7066" event="script" value="LightningExplode.lua"/>

<LightningExplode.lua>
Code:
[COLOR="SeaGreen"]function onStepIn(cid, item, position, fromPosition, item2)
local storage = 35000
local teleportpos = {x = 119, y = 14, z = 14}
local p = getPlayerPosition(cid)[/COLOR]

[COLOR="RoyalBlue"]local positions = {
    { pos= {x=p.x+1,y=p.y,z=p.z}, delay = 100, delay2 = 4900, delay3 = 1520, delay4 = 2160, delay5 = 6505},
    { pos= {x=p.x+1,y=p.y+1,z=p.z}, delay = 200, delay2 = 5000, delay3 = 1600, delay4 = 2240, delay5 = 6505},
    { pos= {x=p.x,y=p.y+1,z=p.z}, delay = 300, delay2 = 5100, delay3 = 1680, delay4 = 2320, delay5 = 6505},
    { pos= {x=p.x-1,y=p.y+1,z=p.z}, delay = 400, delay2 = 5200, delay3 = 1760, delay4 = 2400, delay5 = 6505},
    { pos= {x=p.x-1,y=p.y,z=p.z}, delay = 500, delay2 = 5300, delay3 = 1840, delay4 = 2480, delay5 = 6505},
    { pos= {x=p.x-1,y=p.y-1,z=p.z}, delay = 600, delay2 = 5400, delay3 = 1920, delay4 = 2560, delay5 = 6505},
    { pos= {x=p.x,y=p.y-1,z=p.z}, delay = 700, delay2 = 5500, delay3 = 2000, delay4 = 2640, delay5 = 6505},
    { pos= {x=p.x+1,y=p.y-1,z=p.z}, delay = 800, delay2 = 5600, delay3 = 2080, delay4 = 2720, delay5 = 6505}
}[/COLOR]

[COLOR="Red"]    if(item.actionid == 5000) then
	doSendMagicEffect(p, 6)
        for i = 1, 8 do
	   addEvent(doSendMagicEffect, positions[i].delay, positions[i].pos, 6)
	   addEvent(doSendMagicEffect, positions[i].delay2, positions[i].pos, 6)
	   addEvent(doSendMagicEffect, positions[i].delay3, positions[i].pos, 6)
	   addEvent(doSendMagicEffect, positions[i].delay4, positions[i].pos, 6)
	   addEvent(doSendMagicEffect, positions[i].delay5, positions[i].pos, 6)
	   addEvent(doTeleportThing, 7250, cid, teleportpos)
	end
    elseif(item.actionid == 4999) then
		local lightLevel = 10
		local lightTicks = 1
		doSetCreatureLight(cid, lightLevel, 5, lightTicks)
    elseif(item.actionid == 4998) then
		local lightLevel = 8
		local lightTicks = 1
		doSetCreatureLight(cid, lightLevel, 65, lightTicks)
    end
return TRUE
end[/COLOR]

This is a shortened version of it.
My version has about 300-400 more lines.
Normally people wouldn't release their scripts, but I SUPPORT sharing information, because even though originality is one of the most important things when it comes to a new server, for a lot of people, I would like to help everyone learn more, and benefit with them, when they learn more, and release a script themselves. Of course not everyone will, but some will.
 
Last edited:
looked cooler now xd looked buggy with the lightning on the previous video when you walked on the bridge

Cool!

EDIT; I think the last explosion with fire should be when you get teleported to the apocalypse(not all the fires, just the last, big explosion that's in the whole screen)
 
Back
Top