Ogi - 2008-02-08 14:09:35 |
Skypt Polega Na: - Wysysaniu many do zbiornika ( przechowanie ) - Wypijaniu many ze zbiornika kiedy chcemy. Przykład: Idziemy sobie i jeżeli mamy za dużo many i jest niepotrzebna klikamy na zbiornik i używamy go na siebie. Nastęnie gdy jest nam brak many możemy wypić to co wcześniej zostawiliśm Smile
Tworzymy w Data/Actions/zbiornik.lua
Spoiler:function onUse(cid,item,frompos,item2,topos)
maxmana = 400 -- ile many ma dodawać notfullmana = getPlayerMana(cid)
if item.itemid == 4864 then doTransformItem(item2.uid,4863) doPlayerAddMana(cid,getPlayerStorageValue(cid,1)) doPlayerSendCancel(cid,'You recovered ' .. getPlayerStorageValue(cid,1) .. ' of mana.') doSendMagicEffect(topos,1) ww elseif item.itemid == 5884 and getPlayerMana(cid) >= maxmana-getPlayerStorageValue(cid,1) then doTransformItem(item.uid,4864) doPlayerSendCancel(cid,'You kept more '.. maxmana-getPlayerStorageValue(cid,1) ..' of mana.') doPlayerAddMana(item2.uid,maxmana-getPlayerStorageValue(cid,1)) doSendMagicEffect(frompos,1)
elseif item.itemid == 5884 then doTransformItem(item2.uid,4863) doPlayerAddMana(cid,getPlayerStorageValue(cid,1)) doPlayerSendCancel(cid,'You recovered ' .. getPlayerStorageValue(cid,1) .. ' of mana.') setPlayerStorageValue(cid,1,1) doSendMagicEffect(topos,1)
elseif getPlayerMana(cid) >= maxmana and item.itemid == 4863 then doTransformItem(item.uid,4864) doPlayerSendCancel(cid,"You kept ' .. maxmana .. ' of mana.") doPlayerAddMana(item2.uid,-maxmana) setPlayerStorageValue(cid,1,maxmana) doSendMagicEffect(topos,1) else doTransformItem(item.uid,5884) doPlayerSendCancel(cid,'You kept ' .. notfullmana .. ' of mana.') setPlayerStorageValue(cid,1,notfullmana) doPlayerAddMana(item2.uid,-notfullmana) doSendMagicEffect(topos,1)
end
return 1 end
a w actions.xml wpisujemy:
Spoiler: <action itemid="4863" script="zbiornik.lua" allowfaruse="0" /> <action itemid="4864" script="zbiornik.lua" allowfaruse="0" /> <action itemid="5884" script="zbiornik.lua" allowfaruse="0" />
Potem na otsie wpisujemy:
/i 4836 1
i mamy zbiornik
SKRYPT niejest moj jest z serwisu: www.xxx.pl =]
|
Rolfix - 2008-02-08 16:34:12 |
cos ciekawego nie slyszalem o tym
|
Ogi - 2008-02-09 12:01:20 |
hehe to jush slyszysz xD
|
pat999 - 2008-02-09 12:14:08 |
a dziala to pod 7.92 ?
|
Cinek - 2008-02-09 15:47:04 |
Idiotyzm... i po co to komu? ;/
|
Ogi - 2008-02-09 16:43:38 |
Moze ktos chce jakis update po co gadasz jak ci sie niepdoba to wyloncz :)
|
MixFixGirl - 2008-02-09 16:46:56 |
Ale serio, nikomu to nie potrzebne raczej :P
|
Cinek - 2008-02-09 17:09:50 |
@Up No i taka jest prawda.
|
Seba9 - 2008-02-09 18:56:50 |
Ale serio, nikomu to nie potrzebne raczej
ale jakies urozmaicenie na otsie sie przyda :P przynajmniej noobki sie pobawia :D
down@ ja zawsze mysle zanim cos napisze ^.^no prawie zawsze :P hehe
|
Ogi - 2008-02-09 21:22:38 |
Seba 9 jedyny pomyslal :PP
|
MixFixGirl - 2008-02-10 00:13:50 |
Wiesz co Ci powiem? Że jak wszyscy którzy tutaj piszą by nie myśleli to nikt by tu nie napisał :P
|
Ogi - 2008-02-11 22:06:30 |
Moze by tak bylo MOZE
|
DjMZ - 2008-02-14 15:30:11 |
A mi się jednak przyda ten skrypt :P
|
Arciu - 2008-02-15 15:15:19 |
Ciekawy skrypt, ciekawy może sie przydać noobkom którzy pobawić sie chcą na otsie
|
NotLamer - 2010-06-08 17:32:59 |
Nie wiem czy mi się przyda pewno nie ,ale fajnie wygląda.
|