Jump Quest

Results 1 to 6 of 6
  1. #1
    Enthusiast FlewHigh is offline
    MemberRank
    Jun 2013 Join Date
    35Posts

    Jump Quest

    I'm making a jump quest system for my server, but there's this problem that's spoiling the whole system. I need to make a NPC at the end of the JQ, so that the players get rewarded and warped away. But the problem is, the players can click the npc from the bottom and earn freebies. How do I make the NPC to be allowed for the player only when the player is near the NPC? Like when the player is far away from the NPC, the NPC will say something like "Don't try to cheat me." And when its near, the NPC will say "Great job on completing!" and warp them to FM.


  2. #2
    Moongran Saii is offline
    MemberRank
    Jan 2012 Join Date
    510Posts

    Re: Jump Quest

    check the position of the character.
    for example if you put that npc on some platform you will need
    char.getYPos == npc.getYPos
    char.getXPos < platform.getEdgerXValue && char.getXPos > platform.getOtherEdgeXValue(means he is actually on the platform)
    (not real method names, just to ellaborate)

  3. #3
    Enthusiast FlewHigh is offline
    MemberRank
    Jun 2013 Join Date
    35Posts

    Re: Jump Quest

    I can't find the methods related to positions from either maplecharacter or npcconversationmanager. Are you able to provide the methods for it?

  4. #4
    Moongran Saii is offline
    MemberRank
    Jan 2012 Join Date
    510Posts

    Re: Jump Quest

    getPosition in maplecharacter

  5. #5
    Account Upgraded | Title Enabled! Joakim432710 is offline
    MemberRank
    Oct 2008 Join Date
    222Posts

    Re: Jump Quest

    Check the KerningPQ Script that was released a few years ago, it has those exact methods. You create an allowed "square" then you make sure that character.x > Allowed square's min x, and character.x < allowed square's max x. This is repeated for Y aswell.

  6. #6
    Enthusiast FlewHigh is offline
    MemberRank
    Jun 2013 Join Date
    35Posts

    Re: Jump Quest

    Can't find any "getPosition" method in MapleCharacter. Only in MaplePortal, which I don't think is related.

    Although I can't find any "getPosition" method in MapleCharacter, I found this :

    Code:
    mf.setPosition(getPosition());
    and also, in a NPC, I also found this
    Code:
    cm.getPlayer().getPosition()
    The weird thing is, I can't even find the method getPosition in MapleCharacter.

    @Joakim

    Any link to the one you're referring to? I searched and there's tons of Kerning PQ released in ragezone

    Solved this. Went to MapleBlade's repack and took a look at their NPCs.



Advertisement