Thread: How to have a degrading item or charged item swap ids

Results 1 to 4 of 4
  1. #1 How to have a degrading item or charged item swap ids 
    Open For Services

    Join Date
    Jun 2019
    Posts
    82
    Thanks given
    5
    Thanks received
    25
    Discord
    View profile
    Rep Power
    45
    Just thought id post this little snippet and maybe it helps anyone who may search for it in the future, quite honestly ive not even searched for it myself to check if there any out there.


    So this is an example
    Code:
    if (c.playerEquipment[c.playerWeapon] == 22550 && c.crawsbowCharge <= 0) { // new								
    					c.getItems().wearItem(22547, 1, 3);
    				}
    Code:
    the (3) is the item slot that its exchanging the item into.
    to help you understand it more, its changed into a charged craw's bow when the charges are at 0 into a craw's bow uncharged.

    this system could be used to swap degradeables out the hand upon degraded using -1 id assume or cool other custom systems.

    this can be handled in files such as AttackNPC or AttackPlayer , may be called something different on your source.


    Pretty much just coded it, not sure if ive missed anything but feel free to comment if i have.
    Last edited by Aaron W; 10-30-2019 at 12:05 AM.
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    So you are showing us what is an item slot?
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
    Reply With Quote  
     

  3. #3  
    Ⱨ₳Ɽ₳₥ ₳₴ ₣Ʉ₵₭

    A Furry's Avatar
    Join Date
    Sep 2014
    Age
    23
    Posts
    2,779
    Thanks given
    2,123
    Thanks received
    1,968
    Discord
    View profile
    Rep Power
    5000
    awesome will use thnx rep++





    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2016
    Posts
    122
    Thanks given
    14
    Thanks received
    30
    Rep Power
    61
    Wouldn't it be easier to assign an attribute to an item to determine the charge it has left? And after an attack check if the item has 0 durability --> if so: Replace with the item like you've shown above
    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. Replies: 4
    Last Post: 05-05-2010, 09:11 AM
  2. How to have same accounts in 2 worlds
    By Jessemills1 in forum Tutorials
    Replies: 9
    Last Post: 05-18-2008, 10:51 PM
  3. How to get the numbers you need for item coloring
    By Codyd536 in forum Tutorials
    Replies: 24
    Last Post: 09-15-2007, 04:32 PM
  4. Teaching how to have the same affect used by multipul things
    By Eternal Darknes in forum Tutorials
    Replies: 7
    Last Post: 09-15-2007, 05:48 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
  •