Jump to content

Recommended Posts

Posted (edited)

Good evening, I come to share a code that I made for my project.

 

Code https://pastebin.com/raw/sWbUMqiG

 

Good as I do not like to use these ready made codes I made this, as aCis is clean and light, I will explain how to use my code.

 

I took Draconic as an example.

 

 <item id="7575" type="Weapon" name="Draconic Bow">
    <set name="icon" val="icon.weapon_draconic_bow_i00" />
    <set name="default_action" val="equip" />
    <set name="weapon_type" val="BOW" />
    <set name="bodypart" val="lrhand" />
    <set name="random_damage" val="5" />
    <set name="attack_range" val="500" />
    <set name="damage_range" val="0;0;10;0" />
    <set name="crystal_count" val="2440" />
    <set name="crystal_type" val="S" />
    <set name="material" val="ADAMANTAITE" />
    <set name="weight" val="1650" />
    <set name="price" val="48800000" />
    <set name="soulshots" val="1" />
    <set name="spiritshots" val="1" />
    <set name="mp_consume" val="11" />
    <set name="reuse_delay" val="1500" />
	<cond msgId="1518">
	   <and>
			<player classId="SAGGITARIUS" />
	   </and>
	</cond>
    <for>
      <set order="0x08" stat="pAtk" val="581" />
      <set order="0x08" stat="mAtk" val="132" />
      <set order="0x08" stat="rCrit" val="12" />
      <sub order="0x10" stat="accCombat" val="3" />
      <set order="0x08" stat="pAtkSpd" val="293" />
      <enchant val="0" order="0x0C" stat="pAtk" />
      <enchant val="0" order="0x0C" stat="mAtk" />
    </for>
  </item>

 

Here you block to other classes, so only a certain class can use.

 

<cond msgId="1518">
       <and>
            <player classId="DUELIST" />
       </and>
    </cond>

 

when another class tries to use the bow !!

 

ckDABXM.png&key=6deda8e18955cdd1f4e0b1d0

Edited by Williams

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..