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

Lua Paladin

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
Need item ItemID: [5907]. slingshot.

I need attacks since assasin star but with the effect of cake
Only can use Paladins.

Thx.
 
on weapons xml add:
PHP:
	<distance id="5907" level="80" unproperly="1" function="default"> <!-- SlingShot -->
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</distance>

script:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 41)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Up: Lua code?
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 41)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

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

Where I put it?
In weapont?
waht name?
In items xml?
 
Mmmm no atac efetc cake :S is spear o_O
Where I put in items?
I have->
<item id="5907" article="an" name="slingshot" plural="slingshots">
<attribute key="weight" value="200"/>
<attribute key="attack" value="75"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="SlingShot"/>
<attribute key="range" value="5"/>
<attribute key="breakChance" value="0"/>
<attribute key="ammoAction" value="moveback"/>
</item>
 
Code:
<attribute key="shootType" value="SlingShot"/>
there is no such things that throws "slingshots". what shoot effect do you want to have?
 
zkum he wants slingshot to shoot cakes

EDIT: try:

PHP:
	<item id="5907" article="a" name="SlingShot">
		<attribute key="weight" value="725" /> 
		<attribute key="weaponType" value="wand" /> 
		<attribute key="description" value="SlingShot with cake power!" /> 
		<attribute key="range" value="7" /> 
		<attribute key="shootType" value="cake" />
	</item>

if doesnt work try:

PHP:
	<item id="5907" article="a" name="SlingShot">
		<attribute key="weight" value="725" /> 
	    <attribute key="weaponType" value="distance" /> 
		<attribute key="shootType" value="cake" /> 
	</item>
 
Last edited:
I have in weapons/script one file lua , name : SlingShot.lua
In Items:
<item id="5907" article="an" name="slingshot" plural="slingshots">
<attribute key="weight" value="200"/>
<attribute key="attack" value="75"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="SlingShot"/>
<attribute key="range" value="5"/>
<attribute key="breakChance" value="0"/>
<attribute key="ammoAction" value="moveback"/>
</item>

Have I something badly?

Atac efect spear :S not cake :(
 
haha uhm wtf. xD

Code:
<attribute key="shootType" value="[U]Cake[/U]"/>

haha. no but, dunno rly xd

EDIT:
there is no shoot effect with a cake? imposible. (?)
 
i think it cant be more fast attacking and the damage its done by the level
high lvl = high damage like assassin star like you wanted lol
 
Back
Top