Jump to content
  • 0

R>Daily Quest For ZENY ( Account BOUNDED per QUEST )


Question

1 answer to this question

Recommended Posts

Posted

Try : 

 

prontera,150,150,0    script    Quest    100,{
    
    if ( gettimetick(2) < #timer ) {
        mes .npc$;
        mes "You can do the quest once a day";
        close;
    }

    mes .npc$;
    mes "Here are my requirements : ";
    while ( .@i < .size ) {
        mes .requirements[.@i + 1] + "x " + getitemname(.requirements[.@i]);
        set .@i, .@i + 2;
    }
    next;
    while ( .@i < .size ) {
        if ( countitem(.requirements[.@i]) < .requirements[.@i + 1] ) close;
        set .@i, .@i + 2;
    }
    mes .npc$;
    mes "Nice nice nice ~ ";
    set Zeny, Zeny + .prize;
    set #timer, gettimetick(2) + 86400;
    close;
    
    OnInit:
        set .npc$, strnpcinfo(1);
        setarray .requirements[0],7227,5,7179,5; // <item id>,<amount> this is for requirements
        set .prize, 1000000; // Zeny prize
        set .size, getarraysize(.requirements);
        end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...