Jump to content
  • 0

[issue] Rent Item not countitem in script


edwardluciano

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  29
  • Reputation:   2
  • Joined:  04/21/16
  • Last Seen:  

[Octopus Cave] request Octopus Hunting Skewer (6442) , When i use Octopus Hunting Skewer 23 Hour Box get Octopus Hunting Skewer 23 hr (6442) rent
it can't open instnace 

this my script
 

mal_dun01,151,235,5    script    Starfish    551,{

    set .@party_id,getcharid(1);
    set .@md_name$,"Octopus Cave";

    if (!.@party_id) {
        mes "[Starfish]";
        mes "You alone is powerless, hehe!";
        mes "Better get someone to help you out.";
        mes "Make a party, and come back later.";
        close;
    }
    if (is_party_leader() == false) {
        mes "[Starfish]";
        mes "Where is your leader, hehe.";
        mes "I don't talk to some random people.";
        mes "Bring your boss to me.";
        close;
    }
    mes "[Starfish]";
    mes "I am guarding here, hehe!";
    mes "It is just roughly blocked for now.";
    mes "But someday this cave must be sealed forever, hehe!";
    next;
    while(1) {
        switch(select("Ask what's going on.:Ask to open the gate.:Go to other location.")) {
        case 1:
            mes "[Starfish]";
            mes "Lately, our Starfish lady is";
            mes "suffering with some issues, ooh ooh.";
            mes "Something bad happen in this";
            mes "peaceful place, hehe!";
            next;
            mes "[Starfish]";
            mes "Weird looking limbs came out";
            mes "from the hole there,";
            mes "tried to kidnap our lady Starfish.";
            mes "Ooh Ooh.";
            next;
            mes "[Starfish]";
            mes "It seems those limbs belong to";
            mes "that ugly octopus.";
            mes "That monster should be taken care of,";
            mes "but it's hard for ourselves only to make it happen, hehe.";
            next;
            mes "[Starfish]";
            mes "I want to find someone special,";
            mes "and ask to punish this ugly octopus.";
            mes "I hope this octopus won't ever";
            mes "harass our lady, hehe.";
            next;
            mes "[Starfish]";
            mes "Go catch that octopus and stick it to this pick.";
            mes "If you bring back the pick, I will";
            mes "open this gate for a while.";
            mes "You should challenge if you are interested, hehe.";
            next;
            break;
        case 2:
            set .@playtime, checkquest(4197,PLAYTIME);
            if (.@playtime == 0 || .@playtime == 1) {
                mes "[Starfish]";
                mes "Octopus is not around now, hehe.";
                mes "Please come back later.";
                close;
            }
            if (.@playtime == 2) erasequest 4197;
            if (countitem(6442) >= 1) {
                if (instance_create(.@md_name$) < 0) {
                    mes "[Starfish]";
                    mes "Party name is... "+getpartyname(.@party_id)+".";
                    mes "Party leader is... "+strcharinfo(0)+".";
                    mes "^0000ff"+.@md_name$+"^000000, I cannot open now, hehe.";
                    mes "Now is not the time, please wait.";
                    close;
                }
                mes "[Starfish]";
                mes "I will open the gate for a while to ^0000ff"+.@md_name$+"^000000.";
                mes "Please catch that pervert octopus,";
                mes "and come back with it sticked to the pick, hehe.";
                close;
            }
            mes "[Starfish]";
            mes "Prepare a pick first,";
            mes "so you can thread that octopus";
            mes "with that pick.";
            mes "Then, I will let you in for a while, hehe.";
            close;
        case 3:
            mes "[Starfish]";
            mes "This is not a good location, check someplace else.";
            close;
        }
    }
}

My pic
1442745248_screenTweedy-RO009.jpg.32fda157b26f4c1dccfe2fbf29759582.jpg

 

28465563_screenTweedy-RO010.jpg.3231581f41492f93b423221b6d2dd614.jpg

Edited by edwardluciano
change quote to code
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

Link to comment
Share on other sites

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.

×
×
  • Create New...