Jump to content
  • 0

Fix this script please.


freyreuxine13

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  85
  • Reputation:   2
  • Joined:  08/30/12
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Can you upload the script? Or use [/code].

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  85
  • Reputation:   2
  • Joined:  08/30/12
  • Last Seen:  

thanks a lot :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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

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