#1 2008-11-16 17:30:44

Uzzio

Moderator

Zarejestrowany: 2008-11-16
Posty: 10
Punktów :   

Skrypt na manarune :)

A zatem pokazuje wam skrypta na manarune

wchodzimy w notatnik

Kod:

--Manarune pod Tibia 8.1 by Uzzio
function onUse(cid, item, frompos, item2, topos)
local mlvl = getPlayerMagLevel(cid)
local lvl = getPlayerLevel(cid)
local addmana = math.random(8, lvl) * 5 + 185 - 8*5
if mlvl >= 4 then
if lvl >= 8 then
doPlayerAddMana(cid, addmana)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,'Musisz miec co najmniej 4 Magic level, zeby tego uzyc.')
end
else
doSendMagicEffect(frompos,3)
doPlayerSendCancel(cid,'Musisz miec co najmniej 8 lvl by, moc uzywac tej manaruny.')
end
return 1
end

Następnie zapisujemy jako manarune.lua w katalogu data\actions\scripts.

Teraz w pliku actions.xml dodajemy linijkę:

Kod:

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

Następnie znów otwieramy Notatnik i kopiujemy poniższy kod:

Kod:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
addOutfitCondition(condition, 0, 230, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 231, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 232, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 233, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 234, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 235, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 236, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 237, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 238, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 239, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 240, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 241, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 242, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 243, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 244, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 245, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 246, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 247, 0, 0, 0, 0)
setCombatCondition(combat, condition)
local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)
function onCastSpell(cid, var)
    return doCombat(cid, combat, var)

zapisujemy jako polymorph.lua w katalogu data\spells\scripts.
Potem wchodzimy w plik spells.xml
i wklejamy poniższą linijkę:

Kod:

<rune name="Polymorph" id="2270" charges="100" lvl="10" maglv="20" mana="0" soul="0" exhaustion="1" prem="0" enabled="1" allowfaruse="1" script="polymorph.lua"></rune>

I to tyle

Offline

 

#2 2008-11-16 17:43:21

Poriq

Administrator

Zarejestrowany: 2008-10-11
Posty: 180
Punktów :   
Login :: Game Master
Świat :: Honera
Level :: 0

Re: Skrypt na manarune :)

Fajny skrypt :> Taki jest na Tibia Tower Serv xD heh xD


Zanim coś napiszesz przeczytaj ten temat :
http://www.tibiatower.pun.pl/viewtopic.php?pid=6#p6

Offline

 

#3 2008-11-16 18:10:15

Uzzio

Moderator

Zarejestrowany: 2008-11-16
Posty: 10
Punktów :   

Re: Skrypt na manarune :)

no bo ja go ci dałem xD

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
GotLink.plnhw fliplife kołdra amz