L
LordVissie
Guest
Hey guys, I just maked my 3rd own script (I'm pretty proud of that 
)
This is the script
So It TPS me over here. https://gyazo.com/ece9d89da37f21caf2f8efb9ecee0b4b
But I want to add some delay between spawning and pulling the lever. Like a 1/2 second delay and when all creatures are dead there's going to come a round 2 and round 3. Then there will spawn a TP wich teleports you to a spot at the chest room. This is kinda my idea.
Something like that.
Ofc. There should be a much easier/better script then this and feel free to tell me. I don't know if storage was needed here but I don't how to make that either so I don't know
So actually I would like to know is:
Please don't make the script or make the script with a lot of notations with -- so I can understand what you are doing cuz I'm trying to learn scripting. I would really appreciate that

Kind Regards,
LordVissie
~~~ Edit ~~~
Using 0.3.6
This is the script
Code:
local config = {
tp = {x=1035, y=895, z=9}
}
function onUse(cid, item, frompos, item2, topos)
doTeleportThing(cid, config.tp)
doSummonCreature("morgaroth", {x=1032, y=892, z=9})
doSummonCreature("ghazbaran", {x=1037, y=897, z=9})
doSummonCreature("apocalypse", {x=1038, y=892, z=9})
doSummonCreature("zugurosh", {x=1032, y=898, z=9})
return true
end
So It TPS me over here. https://gyazo.com/ece9d89da37f21caf2f8efb9ecee0b4b
But I want to add some delay between spawning and pulling the lever. Like a 1/2 second delay and when all creatures are dead there's going to come a round 2 and round 3. Then there will spawn a TP wich teleports you to a spot at the chest room. This is kinda my idea.
Something like that.
Ofc. There should be a much easier/better script then this and feel free to tell me. I don't know if storage was needed here but I don't how to make that either so I don't know
So actually I would like to know is:
- How to add delay between the spawning creatures.
- How to check if the creatures are dead so a next round can begin.
- How to spawn a TP with coordinates.
Please don't make the script or make the script with a lot of notations with -- so I can understand what you are doing cuz I'm trying to learn scripting. I would really appreciate that
Kind Regards,
LordVissie
~~~ Edit ~~~
Using 0.3.6
Last edited by a moderator: