- Dołączył
- Wrzesień 16, 2008
- Posty
- 193
- Liczba reakcji
- 17
Udost?pniam wam skrypt na softy.
Od razu m?wi?, ?e skrypt nie jest m?j.
W ots//data//actions//scripts tworzymy plik Soft.lua
W nim wpisujemy to :
W Actions.xml wpisujemy to :
Screen : http://img253.imageshack.us/img253/712/softy.png
Od razu m?wi?, ?e skrypt nie jest m?j.
W ots//data//actions//scripts tworzymy plik Soft.lua
W nim wpisujemy to :
function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = Ile ma trwa? exatushed? Piszemy to np. 0,7 -- How many seconds manarune will be unavailible to use. --
local exhausted_storagevalue = 1259 -- Storage Value to store exhaust. It MUST be unused! --
mag = getPlayerMagLevel(cid)
if mag >= 0 then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Co ma pisa? po klikni?ciu na soft?",16)
doPlayerAddMana(cid,"Wpisujemy tu ile many ma da??")
doPlayerAddHealth(cid,Ile health ma da??)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Wpisujemy tekst exatusheda.")
end
end
return 1
end
W Actions.xml wpisujemy to :
<action itemid="2640" script="Soft.lua" />
Screen : http://img253.imageshack.us/img253/712/softy.png




