Teddy
SweStream.se
Can i make a Gold Nugget to a unlimited donate bolt? for crossbow?
<item id="2157" article="a" name="gold nugget" plural="gold nuggets">
<attribute key="weight" value="10"/>
[B][COLOR="Red"] <attribute key="slotType" value="ammo"/>
<attribute key="attack" value="50"/>
<attribute key="maxHitChance" value="100"/>
<attribute key="weaponType" value="ammunition"/>
<attribute key="ammoType" value="bolt"/>
<attribute key="shootType" value="smallholy"/>
<attribute key="ammoAction" value="moveback"/>[/COLOR][/B]
</item>
actually what i posted works correctly and doesn't remove nuggets.ok, lets see, i think you use "removeWeaponAmmunition = true" and you want make the nugget for special players, im not sure if now there is any "items.xml" value to prevent remove ammo, in case there is no one you should make a weapon script, and if there is one then all ok 8)
tested and working, altough i can't find an appropriate shooteffect for it.No i have
removeWeaponAmmunition = false
will
Cykotitan
script work ?![]()
smallholy(exori san) is a perfect effect for this.eace:
didnt noticed your post 8) i was already posting when you posted.actually what i posted works correctly and doesn't remove nuggets.
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cfg = {
[XXXX] = { effect = CONST_ME_HOLY },
[XXXX] = { effect = CONST_ME_SMALLHOLY }
}
local v = cfg[item.itemid]
if(item.itemid = v) then
doSendMagicEffect(getCreaturePosition(cid), v.effect)
return true
end
end
And where do i put this (A)Code:function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = { [XXXX] = { effect = CONST_ME_HOLY }, [XXXX] = { effect = CONST_ME_SMALLHOLY } } local v = cfg[item.itemid] if(item.itemid = v) then doSendMagicEffect(getCreaturePosition(cid), v.effect) return true end end
<action itemid="ID HERE" event="script" value="script_name.lua"/>
<action itemid="ID HERE" event="script" value="script_name.lua"/>
Those are shootTypes (also you would need to replace ME with ANI)Code:function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = { [XXXX] = { effect = [B][COLOR="Red"]CONST_ME_HOLY[/COLOR][/B] }, [XXXX] = { effect = [B][COLOR="Red"]CONST_ME_SMALLHOLY[/COLOR][/B] } } local v = cfg[item.itemid] if(item.itemid = v) then doSendMagicEffect(getCreaturePosition(cid), v.effect) return true end end
What kind of an effect?so how do i make a effect for this gold nugget ?
Those are shootTypes (also you would need to replace ME with ANI)
What kind of an effect?
<attribute key="ammoAction" value="moveback"/>