[HELP] NPC Quest

Results 1 to 5 of 5
  1. #1
    Valued Member deregudegu is offline
    MemberRank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    [HELP] NPC Quest

    Hello,
    This is my quest npc's script:
    [Java] NPC Quest - Pastebin.com

    It don't work.
    I would like its changing items 03991005, 03991011 by item 03991000 but I would also be able to add a story that looks like a quest.

    Thanks.


  2. #2
    Ass > Tits Lapje is offline
    MemberRank
    Feb 2009 Join Date
    nullLocation
    1,879Posts

    Re: [HELP] NPC Quest

    PHP Code:
    status = -1;
    req = [0399100503991011039910000399101203991004];

    function 
    start() {
        var 
    text "Hello there! I am the <insert purpose of NPC here> of <insert server name here>! To be able to proceed you need to have 1 piece of the following items:\r\n";
        for (var 
    0req.lengthi++)
            
    text += "\r\n#o"+req[i]+"#"// I believe #o shows the Item image.
        
    text += "Do you have those items?";
        
    cm.sendYesNo(text);
    }

    function 
    action(modetypeselection) {
        
    cm.dispose();
        if (
    mode == 1) {
            if (
    status == 0) {
                for (var 
    0req.lengthi++) {
                    if (!
    cm.haveItem(req[i], 1) {
                        
    cm.dispose();
                        return;
                    }
                }
                
    cm.sendNext("Insert text here.");
            } else if (
    status == 1) {
                
    cm.sendOk("Blabla, thank you for your items.");
                for (var 
    0req.lengthi++) {
                    
    cm.gainItem(req[i], -1);
                }
                
    cm.gainItem(1002553 1);
            }
            
    cm.dispose();
        }

    I really couldn't figure the purpose of your NPC so I made you one which I thought would server it. Do tell me if it needs some modification of any sort.

  3. #3
    Valued Member deregudegu is offline
    MemberRank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] NPC Quest

    Thanks.
    It was that I needed.

    #EDIT
    Npc don't work. :S

  4. #4
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,108Posts

    Re: [HELP] NPC Quest

    Quote Originally Posted by deregudegu View Post
    Thanks.
    It was that I needed.

    #EDIT
    Npc don't work. :S
    You know what's good about the .bat when an NPC doesn't work? It shows an error..

  5. #5
    Valued Member deregudegu is offline
    MemberRank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] NPC Quest

    I fix it:
    [Java] NPC Quest 2 - Pastebin.com

    But the button Yes/No don't work.

    #EDIT
    I fix it.
    Script:
    [Java] [FIX] NPC Quest - Pastebin.com



Advertisement