Odp: Pioruny source w Wodbo
[LUA]local config =
{
storage = 31520,
timee = 1, -- po jakim czasie zostaje wyswietlony efekt
efekt1 = 24,
efekt2 = 22,
efekt3 = 14,
efekt4 = 9,
efekt5 = 21,
efekt6 = 18,
efekt7 = 57,
efekt8 = 89
}
function onThink(cid, interval)
if getPlayerVocation(cid) == 4 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 5 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 6 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 66 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt8)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 44 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 45 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 75 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 76 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 77 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 78 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 79 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 80 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 81 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 85 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 90 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 94 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt3)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 74 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 99 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 101 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 105 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 107 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 113 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 120 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 126 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 123 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
end
return true
end [/LUA]
A reszte rozkmin sam, funkcja toporna ale robi swoja robote