Thread: [718] Item Splitting & Creating

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1 [718] Item Splitting & Creating 
    Registered Member
    Edimmu's Avatar
    Join Date
    Jun 2012
    Age
    30
    Posts
    1,098
    Thanks given
    37
    Thanks received
    119
    Rep Power
    98
    This is to seperate, for example; Abyssal Vine Whip.

    Difficulty 0.5/10

    ItemOptionsHandler HandleItemOption3

    Code:
    if (itemId == #####) {
    player.getInventory().deleteItem(#####, ##);
    player.getInventory().addItem(#####, ##);
    player.getInventory().addItem(#####, ##);
    player.getPackets().sendGameMessage("You seperate the ITEMNAME from the ITEMNAME.");
    return;
    }
    If you don't have Abyssal Vine Whip creation, add this to;

    ItemOptionsHandler HandleItemonItem

    Code:
    if (itemId == ##### && UsedWithId == #####) {
    player.getInventory().deleteItem(#####, ##);
    player.getInventory().deleteItem(#####, ##);
    player.getInventory().addItem(#####, ##);
    player.getPackets().sendGameMessage("You wrap the whip vine around your abyssal whip and create an abyssal vine whip.");
    return;
    }
    NOTE: You can use this for godsword creation, spirit shield creation, and much more.
    I only recommend these methods for people starting out or those who are just learning about ItemOptionsHandler.
    Reply With Quote  
     

  2. #2  
    Zodiac Owner.

    Join Date
    Mar 2013
    Age
    27
    Posts
    387
    Thanks given
    46
    Thanks received
    34
    Rep Power
    37
    Mhe pretty basic could help someone maybe,






    Spoiler for Mhe:

    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Dec 2012
    Posts
    558
    Thanks given
    24
    Thanks received
    115
    Rep Power
    0
    this doesnt deserve a tutorial and add a return;
    Reply With Quote  
     

  4. #4  
    Registered Member
    Edimmu's Avatar
    Join Date
    Jun 2012
    Age
    30
    Posts
    1,098
    Thanks given
    37
    Thanks received
    119
    Rep Power
    98
    Quote Originally Posted by Mang View Post
    this doesnt deserve a tutorial and add a return;
    Like I said, it's basic for the new people to coding and I'm just throwing a contribution out there for them cause all they get normally is "Lol you can't code this!?". So I'm just being nice and helping the community out

    Also thanks for that, I wrote it in like 5 mins.
    Reply With Quote  
     

  5. #5  
    Aldor Manager


    Join Date
    Mar 2014
    Age
    28
    Posts
    1,234
    Thanks given
    200
    Thanks received
    297
    Rep Power
    2459
    Lol 5 min that is 2 min work?
    Attached image

    Respect goes to everyone as he deserves.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Edimmu's Avatar
    Join Date
    Jun 2012
    Age
    30
    Posts
    1,098
    Thanks given
    37
    Thanks received
    119
    Rep Power
    98
    Quote Originally Posted by _Jamal View Post
    Lol 5 min that is 2 min work?
    Your exactly the reason I posted this. People thinking they're better than everyone else.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2012
    Posts
    1,725
    Thanks given
    907
    Thanks received
    362
    Rep Power
    387
    remove this snippet, has been released over 1 million times, i'm sure everyone knows hows to do this, if not
    Reply With Quote  
     

  8. #8  
    Registered Member _Andy's Avatar
    Join Date
    May 2013
    Age
    28
    Posts
    643
    Thanks given
    224
    Thanks received
    111
    Rep Power
    4
    Remake this to handle any type of items, or else it's kinda useless. Don't want to encourage noobs to add even more mass amounts of inefficient code.
    quit
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Dec 2012
    Posts
    558
    Thanks given
    24
    Thanks received
    115
    Rep Power
    0
    Also you should add checks to see if the player actually has the items in the inventory to prevent dupes from fake packets.
    Reply With Quote  
     

  10. #10  
    Registered Member _Wk_'s Avatar
    Join Date
    Apr 2013
    Posts
    267
    Thanks given
    55
    Thanks received
    38
    Rep Power
    11
    Quote Originally Posted by _Andy View Post
    Remake this to handle any type of items, or else it's kinda useless. Don't want to encourage noobs to add even more mass amounts of inefficient code.
    At the current time, I'm sure 'noobs' don't care about the efficiency of the code, they just want it to work. This may not be the best way to do it, but it works, and to be honest, that's all that matters.

    Quote Originally Posted by Bart_ View Post
    remove this snippet, has been released over 1 million times, i'm sure everyone knows hows to do this, if not
    It helps people to learn. We were all novices at one point in our life.

    And yeah, thanks for this, I'm sure it will help people.
    Quote Originally Posted by Sinatra View Post
    You tell me where it goes, it's very small.
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

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. 718 item bonuses
    By altiar in forum Help
    Replies: 4
    Last Post: 08-04-2016, 06:40 AM
  2. 718 item bonuses packed
    By Monum3ntal in forum Configuration
    Replies: 17
    Last Post: 12-29-2013, 10:52 AM
  3. 718 Items
    By Chaz in forum Requests
    Replies: 5
    Last Post: 08-25-2012, 09:31 AM
  4. Replies: 9
    Last Post: 08-12-2012, 01:03 PM
  5. 718+ item.cfg
    By 'Sevendor in forum Configuration
    Replies: 7
    Last Post: 08-09-2012, 11:19 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •