Help with scripting...

Started by ace x, Jul 15, 2010, 06:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ace x

Can anybody help me with this?

Quoteprontera,162,181,3   script   Buffer   48,{
mes "[Buffer]";
mes "Would you like better buffs than healer for a price of 50 Poring Coins?"
menu "Yes please!",-,"No thank you",no;
close;

mes "[Buffer]";
if(countitem(7539)<100) goto L_poor;
delitem 7539,100;
skilluseid 34,50;
skilluseid 29,50;
skilluseid 361,50;
close;

no:
mes "[Buffer]";
mes "Suit yourself.";
close;

L_poor:
mes "[Buffer]";
mes "I'm sorry, you don't have enough Coins...";
close;
}

I am not able to click it.

Lex

You are missing a semi colon at the end of the third line.

Michy

#2
Try this:

prontera,162,181,3<tab>script<tab>Buffer<tab>48,{
mes "[Buffer]";
mes "Would you like better buffs than healer for a price of 50 Poring Coins?";
menu "Yes please!",-,"No thank you",no;

mes "[Buffer]";
if(countitem(7539)<100) goto L_poor;
delitem 7539,100;
skilluseid 34,50;
skilluseid 29,50;
skilluseid 361,50;
close;

no:
mes "[Buffer]";
mes "Suit yourself.";
close;

L_poor:
mes "[Buffer]";
mes "I'm sorry, you don't have enough Coins...";
close;
}


You had a 'close;' right after 'menu "Yes please!",-,"No thank you",no;'

The ,-, in the menu causes the next lines to run, which ended up with a close;

You were also missing a ; on this line:
mes "Would you like better buffs than healer for a price of 50 Poring Coins?"

Oh and I think this is the wrong forum to be asking for scripting help. Try www.eAthena.ws next time, or my own forum that I'm now allowed to advertise.
Currently working as freelance scripter and source developer. PM me if you need something done.
New server in the works. Release date TBA (around summer)
RIP ChosenRO, and prepare for its resurrection
Contact me at [email][email protected][/email] for more information.