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

Lua Spells rune problem. OTX 2

darknelson

Member
Joined
Jun 19, 2011
Messages
190
Solutions
1
Reaction score
15
I changed my items.otb, .spr and .dat files to allow stacking runes on OTX2 7.7 RL-ots. Everythings works fine. Except for example, when a rune with 15 runes stacked is used, all 15 of them disappear.

I solved it using this lua function:
Lua:
function onCastSpell(cid, var)
    doPlayerRemoveItem(cid, 2278, 1)
    return doCombat(cid, combat, var)
end

doPlayerRemoveItem(cid, 2278, 1) works fine, just one is used. But when you use it from the ground, it doesn't dissapear. ( I made runes infinite on config.lua )

please help me with a doRemoveItem cid uid or something works, i tried but i only make it work with doPlayerRemoveItem but when the rune is on ground, it doesnt discount
 
Last edited:
Back
Top