• 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 Help with slingshot weapon

wishy85

GOD Smokey
Joined
May 10, 2010
Messages
150
Reaction score
3
Location
Australia
Hi im tryin to make a new paladin weapon and i wanna use the Slingshot id:5907 and wanted it to shoot like say stones or something similar please is any1 no's how to make it please let me no im in need of the script and i have no idea lolzit has been over a year since i scripted n im starting all over again atm the Slingshot shoots spears...

This is wat it shows when u look at it

14:33 You see a slingshot (Atk:70).
It can only be wielded properly by paladins of level 200 or higher.
It weighs 12.00 oz.

is any1 knows how to make it 60atk and make it shoot like stones or something like it please post it will be much appreciated



And also i have no idea where the script is for it :( so thats anoyyed me even more :(
 
Last edited:
ok so far i have

<distance id="5907" level="200" unproperly="1" event="function" value="default"> <!-- Slingshot -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>

that but i have no script for it but its weird cos it does work but it shoots spears lol im just tryin to remember if there would be a script for it in another folder? cos i only have in my weapons/scripts is burst_arrow, poison_arrow and viper_star

also this is in my items to say wat it is :)

</item>
<item id="5907" article="a" name="slingshot">
<attribute key="weight" value="1200" />
<attribute key="weaponType" value="distance" />
<attribute key="ammoType" value="stone" /> <illchange that to smallstone (same as goblins)
<attribute key="range" value="6" />
<attribute key="hitChance" value="-100" />
<attribute key="attack" value="60" />
</item>


and do i have to restart my server for changing the ammotype? im using 8.6 Naxed Ot if that helps :)
 
Code:
<attribute key="attack" value="60" />
change that?
wanna hit harder do like 70? idk if that works never tested but i think it works with swords on my serv :D
 
hahahaha see imade it like a year ago n had no idea wat i was doen wif it haha but i will try it and i will do quick restart and let u guys no tyvm :D u guys have been a massive help for me over the past couple weeks :D
 
ok now i have a problem lol its hitting with fists and not smallstones or spears or anything lol
this is wat i got now in items.xml

<item id="5907" article="a" name="slingshot">
<attribute key="weight" value="1200" />
<attribute key="weaponType" value="distance" />
<attribute key="ammoType" value="smallstone" />
<attribute key="range" value="6" />
<attribute key="hitChance" value="100" />
<attribute key="attack" value="60" />
 
try:
XML:
<item id="5907" article="a" name="slingshot">
<attribute key="weight" value="1200" />
<attribute key="weaponType" value="distance" />
<attribute key="ammoType" value="smallstone" />
<attribute key="range" value="6" />
<attribute key="breakChance" value="0" />
<attribute key="maxhitChance" value="95" />
<attribute key="attack" value="60" />
 
ok this is weapons.xml

<distance id="5907" level="200" unproperly="1" event="function" value="default"> <!-- Slingshot -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>


and this is items.xml

<item id="5907" article="a" name="slingshot">
<attribute key="weight" value="1200" />
<attribute key="weaponType" value="distance" />
<attribute key="ammoType" value="smallstone" />
<attribute key="range" value="6" />
<attribute key="breakChance" value="0" />
<attribute key="maxhitChance" value="95" />
<attribute key="attack" value="60" />
</item>
 
Try this...

Code:
<distance id="5907" level="200" unproperly="1" value="default"> <!-- Slingshot -->
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
 </distance>

Code:
<item id="5907" article="a" name="slingshot">
 <attribute key="weight" value="1200" />
 <attribute key="weaponType" value="distance" />
 <attribute key="ammoType" value="smallstone" />
 <attribute key="range" value="6" />
 <attribute key="maxhitChance" value="95" />
 <attribute key="attack" value="60" />
 </item>
 
Weapons.xml
XML:
<distance id="5907" level="200" event="function" value="default"> <!-- Slingshot-->
    <vocation id="3"/>
    <vocation id="7" showInDescription="0"/>
    </distance>

Items.xml:
XML:
<item id="5907" article="a" name="slingshot">
        <attribute key="weight" value="1200" />
        <attribute key="attack" value="60" />
        <attribute key="weaponType" value="distance" />
        <attribute key="shootType" value="smallstone" />
        <attribute key="maxHitChance" value="95"/>
        <attribute key="range" value="6" />
        <attribute key="breakChance" value="0" />
    </item>

Should work ;p
 
still using fists nothing changed im using NaxedOt 8.60 if that helps at all ive seen this weapon in action before and would love to get it fixed and up and running :D
 
Back
Top