Imfreezing
Krossa Kapitalismen
Hello Otland , I didnt find any mixed rune w/ Upgrader (for tfs 0.3.6) , so here one is, that's working
*
Are we clear?
Alright, Goto Data/Actions/Scripts Make a script called MIXED RUNE
and put this inside
okay, close that, now make another File called Mixed upgrader and put this inside
Now, make another file called Upgraded mixed rune and put this in
Now for the XML DATA/Actions/Actions.xml
Put this
TESTED ON 0.3.6 !!!!
Cheeze!!
PEace
*
Are we clear?
Alright, Goto Data/Actions/Scripts Make a script called MIXED RUNE
and put this inside
Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos, 14)
doCreatureSay(cid,"Mixed Rune",19)
doPlayerAddMana(cid, 26000000)
doCreatureAddHealth(cid,26000000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
Code:
local changes = {
[2297] = 2300,
}
function onUse (cid, item, fromPosition, itemEx, toPosition)
if itemEx.type > 1 then
return doPlayerSendCancel(cid, "Use the upgrader on 1 item.")
end
if changes[itemEx.itemid] then
doCreatureSay(cid,"UPGRADED!",19)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You upgraded "..getItemInfo(itemEx.itemid).article.." "..getItemInfo(itemEx.itemid).name.." to "..getItemInfo(changes[itemEx.itemid]).article.." "..getItemInfo(changes[itemEx.itemid]).name..".")
doTransformItem(itemEx.uid, changes[itemEx.itemid])
return true
end
end
Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos,14)
doCreatureSay(cid,"Upgraded Mixed Rune",19)
doPlayerAddMana(cid, 56000000)
doCreatureAddHealth(cid,56000000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
Put this
Code:
<action itemid="8300" script="mixed upgrader.lua"/>
<action itemid="2297" script="mixed rune.lua"/>
<action itemid="2299" script="upgraded mixed RUNE.lua" />
Cheeze!!
PEace
Last edited by a moderator: