witam. znalazlem jakis kod i delikatnie go przerobilem lecz nie dziala mi jak trzeba...
mianowicie chcialem aby dzwignia sie "ruszala"
i po dodaniu zaznaczonego tekstu... przestalo mi dzialac "glowne dzialanie" - natomiast dzwignia sie rusza....
;/
mianowicie chcialem aby dzwignia sie "ruszala"
i po dodaniu zaznaczonego tekstu... przestalo mi dzialac "glowne dzialanie" - natomiast dzwignia sie rusza....
;/
local nazwyPotworow = {"nook" , "owel"}
local exh = 5
local storage = 1414
function onUse(cid, item, frompos, item2, topos)
local monster = nazwyPotworow[math.random(1,#nazwyPotworow)]
if item.uid == 9977 and item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
if(getPlayerStorageValue(cid,storage) <= os.time()) then
local summon = doSummonCreature(monster,{x=1017, y=1017, z=7, stackpos=253})
doChallengeCreature(cid, summon)
doChallengeCreature(summon, cid)
setPlayerStorageValue(cid,storage,os.time()+exh)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Czeka cie walka z ".. monster .."!")
elseif item.uid == 9977 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
doPlayerSendCancel(cid,"Jestes noobem")
end
else
doPlayerSendCancel(cid,"You are exhausted.")
end
return TRUE
end
Last edited: