Zawsze można napisać skrypt który zrobi xx rzecz, tylko po co zakładać tematy na PB?..Zawsze można napisać skrypt, który usuwałby 1 spear z ręki i tworzył go pod potworem..
function onAttack(cid, target) local pos = getThingPosition(target) local uid = doCreateItemEx(XXXX, 1) if (getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == XXXX) then doRemoveItem(getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid, 1) doTileAddItemEx(pos, uid) elseif (getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == XXXX) then doRemoveItem(getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid, 1) doTileAddItemEx(pos, uid) end return true end
<item id="2389" article="a" name="spear" plural="spears">
<attribute key="weight" value="2000"/>
<attribute key="attack" value="25"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="spear"/>
<attribute key="ammoAction" value="move"/>
<attribute key="range" value="5"/>
<attribute key="breakChance" value="50"/>