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

Action Annihilation bear change in the demon :>

turek343

New Member
Joined
Aug 16, 2012
Messages
2
Reaction score
0
Many of you thought what to do with the available teddy bear on Annihilation and I developed the script for bear often to be chosen on quest.

Wielu z was zastanoawiało się co zrobić z misiem z Annihilation quest i ja opracowałem skrypt żeby miś był często wybierany na quest.


<action itemid="2326" script="anibear.lua"/>

-- BY Impuls (turek343) --
function onUse(cid, item)

local outfit = {lookType = 35} -- Wyglad w ktory zostaniemy przemienieni
local exhaust = 10 -- Czas ponownego uzycia! (w sekundach)
local time = 1800 -- Czas trwania zmiany wygladu (w sekundach)
local speed = 100 -- item obniza predkosc (300 = normalna, podad szybciej sie porusza...)
local storage = 9393 -- Nie ruszac


if (getPlayerStorageValue(cid, storage) <= os.time()) then
doCreatureSay(cid, "Yeeeah!!!\nZostales demonem.", 19)
doSetCreatureOutfit(cid, outfit, time*1000)
doChangeSpeed(cid, speed)
doSendMagicEffect(getCreaturePosition(cid), 34)
setPlayerStorageValue(cid, storage, os.time()+exhaust)
addEvent(doChangeSpeed, time*1000+40, cid, -speed)
addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Zaczarowany Misio przestal dzialac!")
addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2)
else
doPlayerSendCancel(cid, "Opss... mozesz uzyc tego itemu za "..exhaust.." sekund.")
end
return TRUE
end

Scean shot
http://scr.hu/5gb/70bzo


Sorry for translate =/
 
Last edited:
Back
Top