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
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...