Jump to content

Question

Posted

Hello Guys!

 

can anyone help on this Mining script? 

town02,137,67,3	script	Mining Room	848,{
    set .@npc$, "[ " + strnpcinfo(1) + " ]";
    
    mes .@npc$;
    mes "Go to mining room requires you to have Mine Hat on your head and 10x Old Pick.";
    mes "You can get those item at the ETC Item NPC. So would you like to go?";
    next;
    
    if ( select("Yes:No") - 1 ) {
        mes .@npc$;
        mes "Come back when you are ready";
        close;
    }
    
    if ( countitem( 7318 ) < 10 || getequipid( EQI_HEAD_TOP ) != 5031 ) {
        mes .@npc$;
        mes "You do not follow my requirements";
        close;
    }
    
    mes .@npc$;
    mes "Bye bye!";
    close2;
    delitem 7318, 10;
    warp "dew_dun01",0,0;
}

the script is fine actually. just need some modified a little bit.

 

can anyone help to add when the player is already in the Mining map. the player cant unequip the Mine Hat. they need to wear it while mining..

 

 

Thank in advance 

2 answers to this question

Recommended Posts

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...