The Dink Network

Reply to Re: Scripting Help

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 1st 2007, 02:25 PM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
Ok now i have a REALLY big problem.I made this script:
void talk(void)
{
if (&sseller == 0)
{
freeze(1);
say_stop("`5Ohhh i'm so sick", &current_sprite);
say_stop("Hey are you ok?", 1);
say_stop("`5Yeah...I'm just so sick", &current_sprite);
wait(500);
say_stop("`5Could you get a elixir for me?I'll give you something.", &current_sprite);
say_stop("Ok i'll help you.", 1);
say_stop("`5Thank you.", &current_sprite);
}
&sseller = 1
}
if (&sseller == 1)
{
freeze(1);
say_stop("`5 Do you have a elixir for me?", &current_sprite);
say_stop("Nope.", 1);
say_stop("`5Then go...please i have a family and i don't want to die.", &current_sprite);
unfreeze(1);
}
if (&sseller == 2)
{
freeze(1);
say_stop("`5Here's your elixir.", 1);
kill_item("item_ELI")
say_stop("`5*gulg*gulg*gulg*", &current_sprite);
int &myx = sp_x(1,-1);
int &myy = sp_y(1,-1);
&myy -= 60;
int &mcrap = create_sprite(&myx, &myy, 6, 169, 1);
sp_seq(&mcrap, 169);
sp_script(&mcrap, "shrink");
&myy -= 30;
&myx -= 30;
int &dcrap = create_sprite(&myx, &myy, 6, 169, 3);
sp_seq(&dcrap, 169);
sp_frame(&dcrap, 3);
sp_script(&dcrap, "shrink");

&myy += 10;
&myx += 60;
int &rcrap = create_sprite(&myx, &myy, 6, 169, 6);
sp_script(&rcrap, "shrink");
sp_seq(&rcrap, 169);
sp_frame(&rcrap, 6);
sp_nodraw(&current_sprite, 1)
int &seller = create_sprite(465, 250, 16, 413, 1);
freeze(&seller)
sp_dir(1, 7)
wait(500);
say_stop("`5Whoah!Thanks bud.Now i feel better", &seller);
say_stop("`5Here's your reward", &seller);
add_item("item-sw1",438, 7);
say_stop("Thanks.", 1);
sp_script("hseller")
&sseller = 3
unfreeze(1);
unfreeze(&seller);
}
and when NPC ends saying in "if(&sseller = 0)"he starts to saying on "if (&sseller == 1)"and when it ends the windows crashed!