Sheena |
|
|
|
Dołączył: 25 Mar 2008 |
Posty: 81 |
Przeczytał: 0 tematów
Pomógł: 1 raz Ostrzeżeń: 0/5
|
Skąd: Suwałki |
|
|
![](http://picsrv.fora.pl/Aeolus/images/spacer.gif) |
![](http://picsrv.fora.pl/Aeolus/images/spacer.gif) |
![](http://picsrv.fora.pl/Aeolus/images/post_corner.gif) |
|
Runka dająca kase,skile itp.
Siemnko wszystkim! Dzisiaj chciałabym wam zaprezentowac runke ktora dodaje hp, mane, kase(100cc) i skille!!! TO NIE PLAGIAT!!Skrypty sprawdzane na OTS 8.1!
A więc tak w data/actions/scripts tworzymy plik o nazwie magicrune2 i wklejamy to:
Kod:
Kod: | function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2287 and item.type > 0 then
doPlayerAddMana(cid,10000)
doPlayerAddHealth(cid,10000)
doPlayerAddSkillTry(cid,1,200000)
doPlayerAddSkillTry(cid,2,200000)
doPlayerAddSkillTry(cid,3,200000)
doPlayerAddSkillTry(cid,4,200000)
doPlayerAddSkillTry(cid,5,200000)
doPlayerAddSkillTry(cid,6,200000)
doPlayerAddSkillTry(cid,7,200000)
doPlayerAddItem(cid,2160,100)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,13)
doPlayerSay(cid,"Big Pczka!!!",1)
else
doRemoveItem(item.uid,1)
end
return 1
end |
A do actions/actions.xml dodajemy tą linijke:
Kod:
Kod: | <action itemid="2287" script="magicrune2.lua"/> |
Ip runki 2287...
Podam wam jeszcze skrypt na runke dajoncą EXP!
W data/actions/scripts robimy plik o nazwie runkaexp i wklejamy do niej to
Kod:
Kod: | function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2314 and item.type > 0 then
doPlayerAddExp(cid,9999999999999999)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"YEEEEE!!LVL!!",1)
else
doRemoveItem(item.uid,1)
end
return 1
end |
A do actions.xml dodajemy tą linijkę:
Kod:
Kod: | <action itemid="2314" script="runkaexp.lua"/> |
Mam nadzieję ze pomogłam |
|