Open Tibia Server

Forum Zostalo Stworzone By Pomagać Ludzią W Grze Tibia Ots


#1 2008-12-24 23:12:17

Michal

Administrator

Zarejestrowany: 2008-12-24
Posty: 51
Punktów :   

Skrypt na Manarunke

Wchodzimy w data/actions/actions.xml

Pod -- Bread making buy me--

Wpisujemy

<action itemid="2270" script="manarune.lua" />

Następnie przechodzimy w data/actions/scripts

Tworzymy notatnik
Wpisujemy w nim:


function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 4 then
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,22,"Coraz wiecej many masz moj kochany ")
doPlayerAddMana(cid, 790)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end


else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Your magic is not strong enough to wield this power.")
end
return 1
end

Zapisujemy jako manarune.xml

Czerwony = ilość dodawanej many

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
militaria pl toruń noclegi ciechocinek Specialiste boite de vitesses manuelle drewno kominkowe Kalwaria Zebrzydowska