- Dołączył
- Maj 9, 2009
- Posty
- 38
- Liczba reakcji
- 6
Witam.
Przedstawiam wam skrypt na manarune pod tibia 7.6 w 100% b?dzie dzia?a? !
Otwierany notatnik i wpisujemy :
Przedstawiam wam skrypt na manarune pod tibia 7.6 w 100% b?dzie dzia?a? !
Otwierany notatnik i wpisujemy :
PHP:
-- Mana rune by GM Gregor --
function onUse(cid, item, frompos, item2, topos)
addmanapos = topos
addmanapos.stackpos = 253
playeraddmana = getThingfromPos(addmanapos)
if getPlayerMagLevel(cid) >= 4 then
if playeraddmana.itemid > 0 then
random_number = math.random(100000)
doSendMagicEffect(topos,12)
doPlayerAddMana(playeraddmana.uid,random_number)
doPlayerSay(cid,"Nowa porcja many!",16)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
return 0
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Masz za maly mlvl... ")
end
return 1
end
Zapisujemy to w folderze : data-->actions-->scripts o nazwie manaruna.lua
Nastepni? wchodzimy do data-->actions i otwieramy za pomoc? notatnika actions.xml i wpisujemy :
PHP:
<action itemid="2270" script="manarune.lua" />
Nast?pnie zapisujemy i mamy gotow? manarun? ;-)
Mam nadziej?, ?e pomog?em.
Pozdrawiam,
Pomocnik.

A to mi starczy...