Help: NPC scripting help (V117)

Results 1 to 6 of 6
  1. #1
    Member divinesam is offline
    MemberRank
    May 2004 Join Date
    singaporeLocation
    97Posts

    Help: NPC scripting help (V117)

    Solved
    Thanks you very much.
    Last edited by divinesam; 03-07-14 at 08:08 PM.


  2. #2
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: Help: NPC scripting help (V117)

    Did you compile and replace the jar?

  3. #3
    Member divinesam is offline
    MemberRank
    May 2004 Join Date
    singaporeLocation
    97Posts

    Re: Help: NPC scripting help (V117)

    Yup compiled and replaced. The problem lies in the npc scripting I believe is the slot[selected] holder that is not stored.

  4. #4
    Custom Title Enabled George SS is offline
    LegendRank
    Oct 2005 Join Date
    3,281Posts

    Re: Help: NPC scripting help (V117)

    You haven't defined the "selected". I am not a MapleStory dev but I think something like this should do the trick?

    Code:
     local oldSelect = item.select
    local selected
    function item.select(slot)
      selected = slot
      oldSelect(slot)
    end
    
    function item.getSelectedSlot()
      return selected
    end
    But, yeah, you haven't defined the "selected".

  5. #5
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: Help: NPC scripting help (V117)

    I think the full error would be "method cm.tierItem(Int) does not exist".

    Try (byte) slot[selected].
    Should work if the selected slot can be a byte.

  6. #6
    Member divinesam is offline
    MemberRank
    May 2004 Join Date
    singaporeLocation
    97Posts

    Re: Help: NPC scripting help (V117)

    Thank you everyone for your replies.

    Turn out my syntax error caused the problem.

    Solved :))



Advertisement