Thread: How to properly update attack options - OSPK/Elvarg

Results 1 to 5 of 5
  1. #1 How to properly update attack options - OSPK/Elvarg 
    Banned

    Join Date
    Mar 2011
    Posts
    657
    Thanks given
    105
    Thanks received
    75
    Rep Power
    0
    I am trying to update the Dragon Hunter Xbow

    Currently looks like this

    Attached image

    I believe I implemented it server sided because it shoots bolts but the options aren't updating.. I assume its something with the cache and updating packed items?

    i want it to end out like this

    Attached image

    any advice is appreciated - thanks
    Reply With Quote  
     

  2. #2  
    Donator

    Ghost's Avatar
    Join Date
    Sep 2010
    Posts
    222
    Thanks given
    76
    Thanks received
    292
    Rep Power
    508
    All done server side for me, look for something similar to this:

    Code:
    } else if (weaponName.endsWith("bow")  {
    			c.setSidebarInterface(0, 1764); // Accurate, rapid, longrange
    			c.getPA().sendFrame246(1765, 200, weapon);
    			c.getPA().sendFrame126(weaponName, 1767);
    Attached image
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Quote Originally Posted by Ghost View Post
    All done server side for me, look for something similar to this:

    Code:
    } else if (weaponName.endsWith("bow")  {
    			c.setSidebarInterface(0, 1764); // Accurate, rapid, longrange
    			c.getPA().sendFrame246(1765, 200, weapon);
    			c.getPA().sendFrame126(weaponName, 1767);
    lol this aint pi..

    OT:
    Literally all you need to do is add the following in the item def (items.json)

    Code:
    "weaponInterface": "CROSSBOW",
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by Ghost View Post
    All done server side for me, look for something similar to this:

    Code:
    } else if (weaponName.endsWith("bow")  {
    			c.setSidebarInterface(0, 1764); // Accurate, rapid, longrange
    			c.getPA().sendFrame246(1765, 200, weapon);
    			c.getPA().sendFrame126(weaponName, 1767);
    The title states properly.

    The ONLY proper way to do it is through the cache itself. Modify the parameters in item definitions; there are like 2-3 parameters you'll need to modify (Interface type, special bar show/hide and.. maybe something else, not sure).
    Attached image
    Reply With Quote  
     

  6. #5  
    Donator

    Ghost's Avatar
    Join Date
    Sep 2010
    Posts
    222
    Thanks given
    76
    Thanks received
    292
    Rep Power
    508
    Quote Originally Posted by Professor Oak View Post
    lol this aint pi..

    OT:
    Literally all you need to do is add the following in the item def (items.json)

    Code:
    "weaponInterface": "CROSSBOW",
    Didn't implement that system myself, just how it was handled previously. But yeah, didn't see that he specified Elvarg so my bad.
    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [TuT] How to add Npc attack emote's [TuT]
    By iZAjz in forum Tutorials
    Replies: 8
    Last Post: 06-17-2011, 04:42 AM
  2. Replies: 68
    Last Post: 11-08-2009, 03:30 PM
  3. How to change weapon attack delay.
    By tucybro in forum Help
    Replies: 4
    Last Post: 05-19-2009, 10:01 PM
  4. How To Fix Ur Attack Npc With More Wepaon
    By PrataKosong in forum Tutorials
    Replies: 10
    Last Post: 02-08-2009, 05:55 PM
  5. Replies: 7
    Last Post: 06-26-2008, 09:41 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •