|
Najlepszy OTS Super OTS :: Super Forum |
|
|
|
|
|
 |
Sob 16:05, 18 Mar 2006 |
 |
Autor |
Wiadomość |
Administrator
Administrator

Dołączył: 05 Mar 2006
Posty: 118
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Temat postu: ManaRune 7.5 |
|
|
Siemka,tu macie skrypcik na MANARUNKE pod tibia 7.5
1.Wchodzimy do .....data/actions/actions.xml otwieramy i wpisujemy tam taka linijke.
Kod: | <action itemid="3095" script="manarune.lua" /> -- Mana Rune by Adminek -- |
2.Wchodzimy do data/actions/scripts i robimy tam plik notatnika o nazwie manarune i wklejamy taka zawartos do tego.
Kod: | -- Mana Rune bo Adminek --
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 3095 and item.type > 1 then
doPlayerAddMana(cid,100) // Tu piszemy iile ma dodawac MANY
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Aaaaah...",1)
else
doRemoveItem(item.uid,1)
end
return 1
end |
I to na tyle a jak chcemy zeby sprzedawal to Dark Rodo to piszemy w Data/npc/scripts/runes... dodajemy tam linije taka
Kod: | elseif msgcontains(msg, 'manarune') and focus == cid then
buy(cid,3095,100,200) |
Gdzie
3095 to id runa
100 to ilość użyć w runie
200 to cena
Post został pochwalony 0 razy
|
|
|
|
|
|
|
 |
 |
|
 |
|
 |
Możesz pisać nowe tematy Możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
|
|
|
|
|
|
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|