Jump to content
  • 0
Sign in to follow this  
glemor123

freebies error

Question

Hallow01,102,75,6	script	Freebies	100,{OnInit:        waitingroom "Freebies Here!",0;	if ( #claimed ) end;	mes "Hello "+strcharinfo(0)+", Welcome To";	mes "I'm the freebies giver.";	mes "I only give 1 freebies per Account";	next;	mes "Please Choose";	next;	switch( select( "Strength:Intelligence:Dexterity" ) ) {		case 1: //getitem <item id>,<amount>getitem 4142,1;				getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1108,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20008,1,1,0,0,0,0,0,0;				break;		case 2: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1602,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20007,1,1,0,0,0,0,0,0;				break;		case 3: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1705,1,1,10,0,0,0,0,0;getitem2 20009,1,1,0,0,0,0,0,0;				break;		default: break;	}	set #claimed, 1;	close;}

 

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: jump_zero (2 parameters):
[Debug]: Data: variable name='#claimed' index=0
[Debug]: Data: label pos=56
[Debug]: Source (NPC): Freebies at Hallow01 (102,75)
[Warning]: script_get_val: cannot access player variable '#claimed', defaulting to 0
[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: strcharinfo (1 parameter):
[Debug]: Data: number value=0
[Debug]: Source (NPC): Freebies at Hallow01 (102,75)
 
 
this is my script
 
 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

maybe because of OnInit:

 

prontera,150,150,6	script	Freebies	100,{	if ( #claimed ) end;	mes "Hello "+strcharinfo(0)+", Welcome To";	mes "I'm the freebies giver.";	mes "I only give 1 freebies per Account";	next;	mes "Please Choose";	next;	switch( select( "Strength:Intelligence:Dexterity" ) ) {		case 1: //getitem <item id>,<amount>getitem 4142,1;				getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1108,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20008,1,1,0,0,0,0,0,0;				break;		case 2: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1602,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20007,1,1,0,0,0,0,0,0;				break;		case 3: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1705,1,1,10,0,0,0,0,0;getitem2 20009,1,1,0,0,0,0,0,0;				break;		default: break;	}	set #claimed, 1;	close;	OnInit:        waitingroom "Freebies Here!",0;end;}

Share this post


Link to post
Share on other sites
  • 0

 

maybe because of OnInit:

 

prontera,150,150,6	script	Freebies	100,{	if ( #claimed ) end;	mes "Hello "+strcharinfo(0)+", Welcome To";	mes "I'm the freebies giver.";	mes "I only give 1 freebies per Account";	next;	mes "Please Choose";	next;	switch( select( "Strength:Intelligence:Dexterity" ) ) {		case 1: //getitem <item id>,<amount>getitem 4142,1;				getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1108,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20008,1,1,0,0,0,0,0,0;				break;		case 2: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1602,1,1,10,0,0,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1505,1,1,10,0,0,0,0,0;getitem2 20007,1,1,0,0,0,0,0,0;				break;		case 3: //getitem <item id>,<amount>getitem 4142,1;getitem2 30032,1,1,0,0,4302,0,0,0;getitem2 30033,1,1,0,0,4143,0,0,0;getitem2 30034,1,1,0,0,4133,0,0,0;getitem2 30035,1,1,0,0,4058,0,0,0;getitem2 30036,1,1,0,0,4107,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 2614,1,1,0,0,4079,0,0,0;getitem2 30048,1,1,0,0,4112,0,0,0;getitem2 1208,1,1,10,0,0,0,0,0;getitem2 1705,1,1,10,0,0,0,0,0;getitem2 20009,1,1,0,0,0,0,0,0;				break;		default: break;	}	set #claimed, 1;	close;	OnInit:        waitingroom "Freebies Here!",0;end;}

ty

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.