i wanna drunk rune script
when player use it to anther player will have drunk
and can use it after 50 sec
Eng please,Działa ale tylko w połowie ponieważ gdy damy look na siebie nic nie pisze ;c
Well this is a script for a quest let me explain.
Ok the quest its about two quest, in the top there are two interruptors that should be on to open a teleport that lead to the prizen room
Note that each of the interruptors are in one tower i mean one interruptor per tower
A tp will appear and it will disappear in 5 min
1. you clic on interruptor
2. then another
3. when two of the interruptor have been activated the portal with appear then it will desaper before 5 min
ty Erexo
<action uniqueid="9876" script="interruptor1.lua"/>
<action uniqueid="9875" script="interruptor2.lua"/>
<event type="kill" name="questbyerexo" script="questbyerexo.lua"/>
registerCreatureEvent(cid, "questbyerexo")
local config = {
{["name"] = 'demon', ["topos"] = {x=1123,y=524,z=7}, ["time"] = 10}, --Only small letters on name, time in seconds
{["name"] = 'rat', ["topos"] = {x=1193,y=536,z=7}, ["time"] = 10}
}
local function teleport(cid)
doTeleportThing(cid, position, true)
return TRUE
end
function onKill(cid, target)
if(isPlayer(target) ~= TRUE) then
for i = 1, #config do
if getCreatureName(target):lower() == config[i].name then
local position = config[i].topos
addEvent(teleport,config[i].time*1000,cid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Congratulations! You have won! after " .. config[i].time .. " seconds you will be teleported to next room")
end
end
end
return TRUE
end
For what?
Title is: teleport after 10sec, after kill a monster...