namemans
Active User
- Joined
- Mar 30, 2012
- Messages
- 117
- Reaction score
- 2
Witam jak w temacie czego brakuje?
Chodzi o to ?e system sag dzia?a i wgl tylko monster bije wszystkich a nie osobe o danej sadze
W data/Creaturescript/creaturescript.xml :
W Creaturescirpt/sripts/login.lua
W Creaturescirpt/sripts/Saga.lua
Kto? mo?e zedytowa? czy doda? jaka? funkcje kt?r? brakuje?
Chodzi o to ?e system sag dzia?a i wgl tylko monster bije wszystkich a nie osobe o danej sadze
W data/Creaturescript/creaturescript.xml :
Code:
<event type="kill" name="saga" event="script" value="saga.lua"/>
Code:
registerCreatureEvent(cid, "saga")
W Creaturescirpt/sripts/Saga.lua
Code:
function onKill(cid, target, lastHit)
if lastHit and getCreatureName(target):lower() == 'wolf' or getCreatureName(target):lower() == 'wolf' and doCreatureAddHealth(target, -(getCreatureHealth(target)*(25/100))) then
setGlobalStorageValue(1, 0)
doCreatureSay(cid, "You kill mizuki", TALKTYPE_ORANGE_1)
if getPlayerStorageValue(cid, 8000) == 1 then
setPlayerStorageValue(cid, 8000, 2)
end
end
return true
end
Kto? mo?e zedytowa? czy doda? jaka? funkcje kt?r? brakuje?