ugurdrahs
New Member
Hi,
does someone have the outfit bonus script for 0.4 [rev 3858]
repp+
does someone have the outfit bonus script for 0.4 [rev 3858]
repp+
Last edited:
How come you are running a "successful" server with no knowledge? I found around 10 scripts in 1 second searching. Try to search for all your problems![]()
10 scripts which doesnt work for 0.4 rev 3858,
![]()
I tested my script for rev 3777 and It worked, So why wouldn't it work in a later revision?
rev 3777 isint rev 3858![]()
tbh its just some different source but not much change. Tried it on 3858 and works fine. You are just bad to host an OT![]()
nop it doesntUsing rev 3858 and script works fine here, derp.
local outfits = {
[21] = {addSpeed = 15, maxHp = 25, maxMp = 25}, -- Rat
[302] = {addSpeed = 250, maxHp = 50, maxMp = 50} -- God
-- speed is relative and will add exact amount of speed
-- the Hp and Mp (health - mana) will add Percent! ( % )
}
function onOutfit(cid,old,current)
doChangeSpeed(cid, (getCreatureSpeed(cid) + outfits[current].addSpeed))
setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + (getCreatureMaxHealth(cid)/100 * outfits[current].maxHp)))
setCreatureMaxMana(cid, (getCreatureMaxMana(cid) + (getCreatureMaxMana(cid)/100 * outfits[current].maxMp)))
return true
end
registerCreatureEvent(cid, "OutfitBonus")
<event type="outfit" name="OutfitBonus" event="script" value="outfitbonus.lua"/>