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

Runes and Potions 8.60

Kojiiro

Nobody cares. Do yourself.
Joined
May 10, 2010
Messages
534
Reaction score
9
Location
Brazil
Has anyone had solved the problem of potions and runes to 8.60 when using the hotkey shows that you have only 100 changes, when in fact you have 500 changes

I hope to answer
hugs kojiiro......
 
If it could work with an onUse you could make a simple lua script and add it to all runes. (ACTIONS, NOT SPELLS!)

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Using one of ' .. getPlayerItemCount(cid, item.itemid) .. ' ' .. getItemPluralNameById(item.itemid) .. '.')
	return true
end

No idea if it will work, but theoretically it should.
 
Make a file named runeuse.lua inside data/actions/scripts

Add the script to it:
Lua:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Using one of ' .. getPlayerItemCount(cid, item.itemid) .. ' ' .. getItemPluralNameById(item.itemid) .. '.')
        return true
end

And add this to actions.xml somewhere:
You gotta edit the ids on which to use it, try it on something first.

Lua:
<action itemid="RUNEID" event="script" value="runeuse.lua"/>


AND IF IT WORKS here's an easy way to add all runes.
Lua:
<action fromid="FIRSTRUNEID" toid="LASTRUNEID" event="script" value="runeuse.lua"/>
 
Make a file named runeuse.lua inside data/actions/scripts

Add the script to it:
Lua:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Using one of ' .. getPlayerItemCount(cid, item.itemid) .. ' ' .. getItemPluralNameById(item.itemid) .. '.')
        return true
end

And add this to actions.xml somewhere:
You gotta edit the ids on which to use it, try it on something first.

Lua:
<action itemid="RUNEID" event="script" value="runeuse.lua"/>


AND IF IT WORKS here's an easy way to add all runes.
Lua:
<action fromid="FIRSTRUNEID" toid="LASTRUNEID" event="script" value="runeuse.lua"/>


doesnt it worked for me
 
[04/08/2010 14:34:57] [Error - LuaScriptInterface::loadFile] data/actions/scripts/mana_potion.lua:2: ')' expected near '.7620'
[04/08/2010 14:34:57] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/mana_potion.lua)
[04/08/2010 14:34:57] data/actions/scripts/mana_potion.lua:2: ')' expected near '.7620'
 
You're not supposed to add it to the other script, you're supposed to make a new one.. besides, its not working as reported :'/ Your best shot would be checking out the job section for someone with c++ skills and ask them to edit it for you.
 
Back
Top