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

Problem with light on item

tarantonio

Old School Player
Joined
Jun 21, 2009
Messages
868
Solutions
1
Reaction score
286
I use otx (same as tfs 0.3.7) and 7.4 version.
I have a problem with magic light wand, it is not working.
The sprite is ok, it has light attribute.
Where shoud I search to fix the light attribute on that item?
 
I use object builder to set the light attribute and it's ok. If I, as GM, create the item with light it has light, but I can't use the item without light. That's the problem. I need to know where to find the code to fix it.
 
Yes, where is the code where define the use of the lightwand?
well it would be in actions
lightwand.lua (create this file)
Code:
function onUse(cid, item, frompos, item2, topos)
    doTransformItem(item.uid, ID of Lit Lightwand Here)
    return true
end
actions.xml (already existing file, add this)
Code:
<action itemid="ID of Unlit Lightwand Here" script="lightwand.lua"/>
 
Yes, where is the code where define the use of the lightwand?

The light wand has an attribute in items.xml
Code:
<attribute key="transformUseTo" value="2163"/>
and the lit wand has this:
Code:
<attribute key="transformUseTo" value="2162"/>
(For 0.4 server, dont know if its the same on other servers)

TFS 1.0 has this in actions.xml
Code:
    <action itemid="2162" function="increaseItemId"/>
    <action itemid="2163" function="decreaseItemId"/>
 
The problem is that the item doesnt work and it doesnt emit light when equiped.
I use otx that is the same as tfs 0.3.7 crying damson
 
Back
Top