MUTANO
New Member
I am related to the player can cut the item Spider's Web (ID: 7539 and 7538) with an Obsidian Knife (ID: 5908).
The Spider's Web is a kind of wall made of Giant Spider web of which the cut with the Obsidian Knife "of web wall" turn open a Spider's Web (ID: 7544 and 7545 - as a way).
I tried to do but I was a failure in the attempt.
Look;
ACTION.XML:
SPIDER'S_WEB.LUA:
And yet the item 5908 (Obsidian Knife) has been used 2 times, as has the task of cutting leather, gave this error:
Please, please someone get it for me.
I will use in the Crusader Helmet for my OtServ.
Thanks, hugs ... :thumbup:
The Spider's Web is a kind of wall made of Giant Spider web of which the cut with the Obsidian Knife "of web wall" turn open a Spider's Web (ID: 7544 and 7545 - as a way).
I tried to do but I was a failure in the attempt.
Look;
ACTION.XML:
PHP:
<action itemid="5908" script="other/spider's_web.lua" />
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 7538 then
doCreateItem(7544, 1, toPosition)
elseif itemEx.itemid == 7539 then
doCreateItem(7545, 1, toPosition)
end
end
And yet the item 5908 (Obsidian Knife) has been used 2 times, as has the task of cutting leather, gave this error:
PHP:
[Warning - Actions::registerEvent] Duplicate registered item with id: 5908
I will use in the Crusader Helmet for my OtServ.
Thanks, hugs ... :thumbup: