Pastel
User
- Joined
- Feb 5, 2014
- Messages
- 33
- Reaction score
- 0
skrypt polega na tym ze po nacisnieciu na softy rosnie nam mana i hp
w data/actions/scripts stworz plik soft.lua
nastepnie wklej ten kod
W actions.xml dodaj
<action itemid="2640" script="soft.lua"/>
testowany na moim silniku dziala kod 100 %
Zly dzial ? prosze o przeniesienie
w data/actions/scripts stworz plik soft.lua
nastepnie wklej ten kod
Code:
-- Soft Boots by Lolmen --
function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = 1.7
local exhausted_storagevalue = 2640
mag = getPlayerMagLevel(cid)
if mag >= 0 then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Uzyles softy{Lolmen OTs}",16)
doPlayerAddMana(cid,"3000")
doPlayerAddHealth(cid,"3000")
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"uzyles softy{LOlmen Ots}")
end
end
return 1
end
W actions.xml dodaj
<action itemid="2640" script="soft.lua"/>
testowany na moim silniku dziala kod 100 %
Zly dzial ? prosze o przeniesienie