Twój OTS

Wszystko Do Twego OTsa


#1 2008-07-11 08:29:32

MiniTibijczyk

http://opentibia.xad.pl/templates/UnholyDark/images/ranks/60.png

Zarejestrowany: 2008-07-11
Posty: 26
Punktów :   

7.6 manarune

Odrazu mówie że skrypt nie mój


W data/actions/scripts tworzymy plik "manarune.lua" i wklejamy to:


Kod:

Kod:

-- 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

Potem w data/actions w plika "actions.xml" wklejamy taki skrypt:

Kod:

 
Kod:

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

Offline

 

Stopka forum

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

[ Generated in 0.078 seconds, 8 queries executed ]


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.immortalsi.pun.pl www.raplive.pun.pl www.pwsz-zarzadzanie-2010.pun.pl www.grubson.pun.pl www.drakenmag.pun.pl