Jump to content

Question

Posted (edited)

can some fix this script? its not working

 

 

prt_maze03,52,190,5 script Evil Baphomet 1929,{
mes "[ Evil Baphomet ]";
mes "So you're here to make the powerful horns?";
mes "I can make you one if you bring me the right items";
next;
mes "[ Evil Baphomet ]";
mes "These are what I need";
mes "300 Evil Horns",
mes "20 Pieces of Young Twig";
mes "10 Pieces of Baphomet Card";
mes "10 Pieces of Biotite";
next;
mes "and 1 Emblem of the Sun God";
mes "Do you have the items that I need?";
menu "Yes",-,No",L_ayaw;
next;
mes "[ Evil Baphomet ]";
mes "Are the items ready? Let me check.";
next;
if(countitem(923) < 300 || countitem(7018) < 20 || countitem(7297) < 10 || countitem(4147) < 10 || countitem(7806) < 1) goto koolang;
if(countitem(923) >= 300 || countitem(7018) >= 20 || countitem(7297) >= 10 || countitem(4147) >= 10 || countitem(7806) >= 1) goto kontinueq;
close;
L_ayaw:
mes "[ Evil Baphomet ]";
mes "Don't waste my time or I'll kill you";
close;
koolang:
mes "[ Evil Baphomet ]";
mes "You don't have the complete items needed";
close;
kontinueq:
mes "[ Evil Baphomet ]";
mes "Good!! Now here's the horn!!";
delitem 923,300;
delitem 7018,20;
delitem 7297,10;
delitem 4147,10;
delitem 7806,1;
getitem 26027,1;
next;
mes "[ Evil Baphomet ]";
mes "Use my power wisely!!";
announce "Wow! "+strcharinfo(0)+" has just acquired the Evil Baphomet Horns.",8;
close;
}

 

 
 
 
 
Edited by Capuche
Quote to Code

6 answers to this question

Recommended Posts

Posted

Here;

prt_maze03,52,190,5	script	Evil Baphomet	1929,{
 
mes "[ Evil Baphomet ]";
mes "So you're here to make the powerful horns?";
mes "I can make you one if you bring me the right items";
next;
mes "[ Evil Baphomet ]";
mes "These are what I need";
mes "300 Evil Horns";
mes "20 Pieces of Young Twig";
mes "10 Pieces of Baphomet Card";
mes "10 Pieces of Biotite";
next;
mes "and 1 Emblem of the Sun God";
mes "Do you have the items that I need?";
menu "Yes",-,"No",L_ayaw;
next;
mes "[ Evil Baphomet ]";
mes "Are the items ready? Let me check.";
next;
if(countitem(923) < 300 || countitem(7018) < 20 || countitem(7297) < 10 || countitem(4147) < 

10 || countitem(7086) < 1) goto koolang;
next;
mes "[ Evil Baphomet ]";
mes "Good!! Now here's the horn!!";
next;
mes "[ Evil Baphomet ]";
mes "Use my power wisely!!";
delitem 923,300;
delitem 7018,20;
delitem 7297,10;
delitem 4147,10;
delitem 7086,1;
getitem 30005,1;
announce "Wow! "+strcharinfo(0)+" has just acquired the Evil Baphomet Horns.",8;
close;
 
L_ayaw:
mes "[ Evil Baphomet ]";
mes "Don't waste my time or I'll kill you";
close;
 
koolang:
mes "[ Evil Baphomet ]";
mes "You don't have the complete items needed";
close;

}
  • Upvote 1
Posted (edited)

Aw, I wasn't fast enough :<

I cleaned up your code a little and removed the labels. Should work as fine as Anakid's version.

 

prt_maze03,52,190,5	script	Evil Baphomet	1929,{

    mes "[ Evil Baphomet ]";
    mes "So you're here to make the powerful horns?", "I can make you one if you bring me the right items";
    next;
    
    mes "[ Evil Baphomet ]";
    mes "These are what I need", "300 Evil Horns", "20 Pieces of Young Twig", "10 Pieces of Baphomet Card", "10 Pieces of Biotite";
    next;
    
    mes "and 1 Emblem of the Sun God","Do you have the items that I need?";
    switch(select("Yes:No")) {
        case 1:
            
            next;
            mes "[ Evil Baphomet ]";
            mes "Are the items ready? Let me check.";
            next;
            
            if (
                countitem(923) < 300 
                || countitem(7018) < 20 
                || countitem(7297) < 10 
                || countitem(4147) < 10 
                || countitem(7086) < 1
            ) {
                mes "[ Evil Baphomet ]";
                mes "You don't have the complete items needed";
            } else {
                mes "[ Evil Baphomet ]";
                mes "Good!! Now here's the horn!!";
                delitem 923,300;
                delitem 7018,20;
                delitem 7297,10;
                delitem 4147,10;
                delitem 7086,1;
                getitem 26027,1;
                next;
                mes "[ Evil Baphomet ]";
                mes "Use my power wisely!!";
                announce "Wow! "+strcharinfo(0)+" has just acquired the Evil Baphomet Horns.",8;
            }
            break;
            
        case 2:
        default:
        
            next;
            mes "[ Evil Baphomet ]";
            mes "Don't waste my time or I'll kill you";
            break;
    }
    close;
}
Edited by DeadlySilence
Posted


-prt_maze03,52,190,5 script Evil Baphomet 1929,{

+prt_maze03,52,190,5 script Evil Baphomet 1929,{

...

-mes "300 Evil Horns",

+mes "300 Evil Horns";

...

-menu "Yes",-,No",L_ayaw;

+menu "Yes",-,"No",L_ayaw;

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