Ramza pL |
Wysłany: Sob 23:56, 18 Mar 2006 Temat postu: Life rune by Miqelm |
|
Tak sobie pomyślałem, że jest manarune ale nie ma liferune. I zrobiłem ją. Oto ona:
to wklej do actions.xml w data/actions
Kod: | -->
<action itemid="3094" script="liferune.lua" /> |
teraz utwórz plik liferune.lua w folderze data/actions/scripts i wklej to:
Kod: | -- Life rune by Miqelm --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 3094 and item.type > 1 then
doPlayerAddHealth(cid,2000)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Aaaaah...",1)
else
doRemoveItem(item.uid,1)
end
return 1
end |
wejdź teraz w data/npc/scripts, otwórz runes.lua i dodaj 2 linijki pod runami:
Kod: | elseif msgcontains(msg, 'liferune') and focus == cid then
buy(cid,3094,100,200) |
I to by było na tyle testujcie, przetestowałem ją i u mnie działa
plz o komenty |
|