Wazzap
Killing Elite
What the course book relies on. We are sticking 10 lvl, we are pressing on christmas tree and we are getting knight armor, appear for us send message, around next present on 100 lvl. We are sticking rally 100 lvl, we are pressing on Christmas tree and we are getting 100 cc, appear for us sie send message, around next present on 200 lvl. And so on forth.
Let START:
actions/prezent.lua
actions.xml
Let START:
actions/prezent.lua
LUA:
-- Skrypt by Wazzap --
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
poziom3 = 800,
poziom2 = 500,
poziom1 = 100,
poziom = 10,
item3 = 2144,
item2 = 2143,
item1 = 2142,
item = 2141,
ilosc3 = 1,
ilosc2 = 1,
ilosc1 = 1,
ilosc = 1,
storage = 2892
}
if getPlayerStorageValue(cid, config.storage) == 4 then
doPlayerSendTextMessage(cid,22,"HAVE ALL PRESENT")
return 0
end
if getPlayerLevel(cid) >= config.poziom3 and getPlayerStorageValue(cid, config.storage) == 3 then
doPlayerAddItem(cid, config.item3, config.ilosc3)
doPlayerSendTextMessage(cid,22,"You get " .. config.poziom3 .. " lvl")
setPlayerStorageValue(cid,config.storage, 4)
return 0
end
if getPlayerLevel(cid) >= config.poziom2 and getPlayerStorageValue(cid, config.storage) == 2 then
doPlayerAddItem(cid, config.item2, config.ilosc2)
doPlayerSendTextMessage(cid,22,"You get " .. config.poziom2 .. " lvl You get next pressent at " .. config.poziom3 .. " lvl ")
setPlayerStorageValue(cid,config.storage, 3)
return 0
end
if getPlayerLevel(cid) >= config.poziom1 and getPlayerStorageValue(cid, config.storage) == 1 then
doPlayerAddItem(cid, config.item1, config.ilosc1)
doPlayerSendTextMessage(cid,22,"You get " .. config.poziom1 .. " lvl You get next pressent at " .. config.poziom2 .. " lvl")
setPlayerStorageValue(cid,config.storage, 2)
return 0
end
if getPlayerLevel(cid) >= config.poziom and getPlayerStorageValue(cid, config.storage) == -1 then
doPlayerAddItem(cid, config.item, config.ilosc)
doPlayerSendTextMessage(cid,22,"You " .. config.poziom .. " lvl You get next pressent at " .. config.poziom1 .." lvl")
setPlayerStorageValue(cid,config.storage, 1)
return 0
end
end
actions.xml
LUA:
<action itemid="2105" script="prezent.lua" />