• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Mixed Rune w/ Upgrader [0.3.6]

Imfreezing

Krossa Kapitalismen
Joined
Jun 7, 2012
Messages
1,009
Solutions
1
Reaction score
88
Location
Edron
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
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
okay, close that, now make another File called Mixed upgrader and put this inside
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
Now, make another file called Upgraded mixed rune and put this in
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
Now for the XML DATA/Actions/Actions.xml
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" />
TESTED ON 0.3.6 !!!!

Cheeze!!
PEace
 
Last edited by a moderator:
Back
Top