#1 2009-03-27 17:26:59

Admin

http://darkwarez.pl/forum/templates/bLock/images/ranks/admin.gif

Skąd: Wła-Wowo
Zarejestrowany: 2009-03-26
Posty: 117
Punktów :   
WWW

MultiRuna 8.1

Siemanko wszystkim! Dzisiaj chcialbym 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:

Spoiler:

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:

Spoiler:

<action itemid="2287" script="magicrune2.lua"/>

Podam wam jeszcze skrypt na runke dajoncą EXP!
W data/actions/scripts robimy plik o nazwie runkaexp i wklejamy do niej to:
Kod:

Spoiler:

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:

Spoiler:

<action itemid="2314" script="runkaexp.lua"/>

Mam NAdzieje Że was to ucieszy xD

Offline

 

Stopka forum

RSS
Powered by PunBB 1.2.23
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
GotLink.pl