local config = {
nagroda = {id = 12681, ilosc = 2}, -- id, ilosc
nazwaPotwora = 'Fire Stone' -- nazwa potwora
}
function onKill(cid, target)
if (getCreatureName(target) == config.nazwaPotwora) then
doPlayerAddItem(cid,config.nagroda.id,config.nagroda.ilosc)
doPlayerAddLevel(cid, 2)
doPlayerSendTextMessage(cid, 22, "Przyczyniles sie do zabicia Fire Stone! otrzymujesz nagrode, ktora znajdziesz w plecaku i 2 lvle.") -- komunikat pdczas otrzymywania nagrody
return true
else
return true
end
end
who can help
nagroda = {id = 12681, ilosc = 2}, -- id, ilosc
nazwaPotwora = 'Fire Stone' -- nazwa potwora
}
function onKill(cid, target)
if (getCreatureName(target) == config.nazwaPotwora) then
doPlayerAddItem(cid,config.nagroda.id,config.nagroda.ilosc)
doPlayerAddLevel(cid, 2)
doPlayerSendTextMessage(cid, 22, "Przyczyniles sie do zabicia Fire Stone! otrzymujesz nagrode, ktora znajdziesz w plecaku i 2 lvle.") -- komunikat pdczas otrzymywania nagrody
return true
else
return true
end
end
who can help