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

can't use action item "you cannot use this object"

Simonp1512

DBhispano
Joined
Feb 22, 2009
Messages
62
Reaction score
3
hi people i have problems with my item now when i use/click on it say "you cannot use this object" and the console no say any error

this is the script
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tapion = {lookType = 502}
doPlayerSetVocation(cid,359)
doCreatureChangeOutfit(cid, tapion)
doRemoveItem(item.uid, 1)
doRemoveCreature(cid)
return true
end

this is the tag on the action.xml
XML:
<action itemid="11707" event="script" value="vocitemtapion.lua"/>

and this is the tag on the item.xml
XML:
<item id="11707" article="a" name="VocMedalTapion">
       <attribute key="weight" value="1900" />
       <attribute key="description" value="This Item Will Grant A New Voc" />
   </item>

thx for the help
 
Solution
hi people i have problems with my item now when i use/click on it say "you cannot use this object" and the console no say any error

this is the script
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tapion = {lookType = 502}
doPlayerSetVocation(cid,359)
doCreatureChangeOutfit(cid, tapion)
doRemoveItem(item.uid, 1)
doRemoveCreature(cid)
return true
end

this is the tag on the action.xml
XML:
<action itemid="11707" event="script" value="vocitemtapion.lua"/>

and this is the tag on the item.xml
XML:
<item id="11707" article="a" name="VocMedalTapion">
       <attribute key="weight" value="1900" />
       <attribute key="description" value="This Item Will Grant A New Voc" />
   </item>

thx for the help
...
hi people i have problems with my item now when i use/click on it say "you cannot use this object" and the console no say any error

this is the script
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tapion = {lookType = 502}
doPlayerSetVocation(cid,359)
doCreatureChangeOutfit(cid, tapion)
doRemoveItem(item.uid, 1)
doRemoveCreature(cid)
return true
end

this is the tag on the action.xml
XML:
<action itemid="11707" event="script" value="vocitemtapion.lua"/>

and this is the tag on the item.xml
XML:
<item id="11707" article="a" name="VocMedalTapion">
       <attribute key="weight" value="1900" />
       <attribute key="description" value="This Item Will Grant A New Voc" />
   </item>

thx for the help

Attribute useable on otb editor?
If you have no errors on the script, it's the only option.
 
Solution
Back
Top