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

Assassin Star - Poff

SnorkY

Veteran OT User
Joined
Nov 28, 2007
Messages
1,395
Reaction score
264
Hello, I have searched and didnt find why assassin stars poff.

i think my scipts are wrong.

data/weapons/weapons.xml

<distance id="7368" hitchance="100" ammo="removecountchance" script="red_star.lua"/>

data/weapons/weapons/scripts/red_star.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ASSASSINSTAR)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -250, 0, -350)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

data/items/items.xml

<item id="7368" article="an" name="assassin star" plural="assassin stars">
<attribute key="weight" value="200"/>
<attribute key="attack" value="200"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="redstar"/>
<attribute key="range" value="5"/>
</item>


I hope someone can help me!

Thanks.
 
Last edited:
data/weapons/weapons.xml

Code:
<distance id="7368" level="80" ammo="removecount" function="internalLoadWeapon"/>

set removecount to `move` or w/e.
 
"Poff" - you mean that it is removed by 1 shoot, or that you often cant take damage from it? I mean: bum, bum, -xhp, bum, bum, bum, -xhp
 
Ya,

Poff means when it comes a white cloud.

poff,poff, doesnt shoot at all, poff, damage, damage, poff, doesnt shoot at all, poff


Sometimes it doesnt even shoot.
 
Back
Top