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
this is the tag on the action.xml
and this is the tag on the item.xml
thx for the help
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