Thread: monkey greegree

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 monkey greegree 
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    any1 know why i cant wield/hold monkey gree gree?

    https://gyazo.com/b32ce0ebde736165c9ec5879c85e1a1b
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jun 2020
    Posts
    4
    Thanks given
    0
    Thanks received
    5
    Rep Power
    0
    look up "You can't wear that item." and post the code
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    so i checked my source and found 4 if satements for "you can't wear that" :

    Spoiler for code 1:
    if (item.getDefinitions().isNoted() || !item.getDefinitions().isWearItem(player.getAppear ence().isMale())) { player.getPackets().sendGameMessage("You can't wear that."); return true; }


    Spoiler for code 2:
    if (targetSlot == -1) { player.getPackets().sendGameMessage("You can't wear that."); return true; }


    Spoiler for code 3:
    if (item.getDefinitions().isNoted() || !item.getDefinitions().isWearItem(player.getAppear ence().isMale()) && t.getId() != 4084) { player.getPackets().sendGameMessage("You can't wear that."); return false; }


    Spoiler for code 4:
    if (targetSlot == -1) { player.getPackets().sendGameMessage("You can't wear that."); return false; }
    Reply With Quote  
     

  4. #4  
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    119
    Thanks received
    294
    Rep Power
    358
    Perhaps the items definitions has its equip slot set to -1. I don’t know if my definitions editor works for you, but it has a field for setting equip slot
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    http://prntscr.com/t78yii

    equip slot is 3 which is the weapon slot i believe.

    equip type is -1 , is that the cause?
    Reply With Quote  
     

  6. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    No (fe)male equip model since it's a transmorph. Just have to add some exceptions for the greegrees
    Project thread
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    ok so i found out that if i add them items into buttonhandler in this code it allowed them to be equipped:

    http://prntscr.com/t7k2ag

    its porbably a horrible way to do, maybe someone knows a better way?
    but i guess if any1 else runs into this issue like me atleast this method fixes it
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jun 2020
    Posts
    4
    Thanks given
    0
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by khayam View Post
    ok so i found out that if i add them items into buttonhandler in this code it allowed them to be equipped:

    http://prntscr.com/t7k2ag

    its porbably a horrible way to do, maybe someone knows a better way?
    but i guess if any1 else runs into this issue like me atleast this method fixes it
    yeah, that's a pretty bad way of fixing it. It's just an easy cheaphax way of fixing a problem, which happens a lot in rsps, and eventually it makes everything super unorganized and hard to read.

    Imagine you found a bunch of items that you couldn't equip and you had to fix them all manually, like you've just done. That if statement is then going to become unnecessarily long.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    Quote Originally Posted by fish o matic View Post
    yeah, that's a pretty bad way of fixing it. It's just an easy cheaphax way of fixing a problem, which happens a lot in rsps, and eventually it makes everything super unorganized and hard to read.

    Imagine you found a bunch of items that you couldn't equip and you had to fix them all manually, like you've just done. That if statement is then going to become unnecessarily long.
    yup im still a noob in coding and wanting to learn any tips on how i could improve this? or a guide?
    Reply With Quote  
     

  10. #10  
    Registered Member Fallore's Avatar
    Join Date
    Jan 2019
    Age
    28
    Posts
    49
    Thanks given
    9
    Thanks received
    15
    Rep Power
    40
    You can force an item to an equipment slot.
    Check inventoryoptions and just make so that if you click item ids that match the monkey greegrees to set your weapon slot to that item ID.
    Even if the monkey gree gree is not set to an item slot, you can still force it that it will be.

    If you do not know what i mean, i can show you it over discord or teamviewer. whatever you prefer.

    Kind regards,

    Fallore.
    Reply With Quote  
     

Page 1 of 2 12 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. Monkey GreeGree
    By "Noah" in forum Help
    Replies: 6
    Last Post: 02-26-2011, 03:04 PM
  2. [508] Monkey Greegree[508]
    By xxhitmekoxx in forum Snippets
    Replies: 17
    Last Post: 08-05-2010, 11:52 PM
  3. need monkey greegree code
    By Ninja assassin in forum Requests
    Replies: 5
    Last Post: 11-09-2009, 12:38 AM
  4. Monkey Greegree's & Picture's [CREATED BY ME]
    By XGamer in forum Tutorials
    Replies: 13
    Last Post: 08-30-2008, 08:57 PM
  5. ACTUAL Monkey GREEGREES
    By Ferret in forum Tutorials
    Replies: 0
    Last Post: 08-21-2007, 08:07 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
  •