function onSay(cid, words, param)
------------------------------ustawienia---------------
local mana = 0
local lvl = 0
local voc = 267
local pacc = 0
local vocka = 118
local pacce = 0
local outfit = {lookType=326,lookHead=0,lookAddons=0,lookLegs=0,l ookBody=0,lookFeet=0}
local outfitTime = 9000000
local czas = 1* 60* 1000
local efektid = 37
--------------------------------koniec ustawien---------
----------------------kod-----------------------------
if(getPlayerMana(cid) >= mana and getPlayerLevel(cid) >= lvl and getPlayerVocation(cid) == vocka) then
doPlayerSetVocation(cid,voc)
doPlayerAddMana(cid,-mana)
doSetCreatureOutfit(cid, outfit, outfitTime)
-- Addevent by Szybol
addEvent(efekt, czas, cid, efektid)
-- Addevent koniec
else
doPlayerSendCancel(cid,"Dostosuj sie do wymagan.")
end
return 1
end
-- Funkcja Addevent
function efekt(cid, numer)
doSendMagicEffect(getPlayerPosition(cid), numer)
-- Wywoluje siebie tworzac petle
addEvent(efekt, czas, getPlayerPosition(cid), efektid)
end