Jump to content
  • 0
Sign in to follow this  
Akaferra

Anyone can help me this?

Question

prontera,154,171,5	script	Investor	100,{	.@price$ = "#CASHPOINTS";	.@cost = 10;	.@bmax = 150;	.@jmax = 50;	if(	compare(jobname(Class),"Mechanic")	&&	BaseLevel == .@bmax 	&&	JobLevel == .@jmax					) {		mes "[ Investor ]";		mes "So would you like to invest in this big project I'm working on?";		mes "It'll cost you 10 cash points!";		next;		if(select("Yes:No")==1) {			if(getd(.@price$)>=.@cost) {				investment++;				.@i = investment;				setd(.@price$,getd(.@price$)-.@cost);				callfunc("package_func",					929,	20,		50, //Immortal Heart					970,	20,		50, //Alcohol					909,	100,		100, //Jellopy					7444,	5,		20, //Treasure Box					603,	1,		1*.@i, //Old Blue Box					4047,	1,		1 //Ghostring Card				);				mes "[ Investor ]";				mes "Congratulations, but maybe next time you'll get something even better!";			} else {				mes "[ Investor ]";				mes "It seems you don't have enough cash points better luck next time.";			}			close;		}		mes "[ Investor ]";		mes "Alright, maybe next time.";	} else {		mes "[ Investor ]";		mes "I don't have time for you!";	}	close;}/// callfunc("package_func",<itemid>,<amount>,<chance>{,<itemid>,<amount>,<chance>{,<itemid>,<amount>,<chance>{,...},<accountid>}})function	script	package_func	{	set .@len, getargcount()-((getarg(getargcount()-1)>=2000000)?1:0);	set .@id, ((getarg(getargcount()-1)>=2000000)?getarg(getargcount()-1):getcharid(3));	while(set(.@i,.@i+3)-3<.@len)		if(rand(101)<=getarg(.@i-1))			getitem(set(@package_item[.@a++-1],getarg(.@i-3)),set(@package_amount[.@a-1],getarg(.@i-2)),.@id);	return .@a;}

 

it seem not working..

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Couldn't test, but it's parsing fine without known errors.

 

Could you please state what isn't working about it? A call for help and "not working" doesn't aid us to magically know what's the problem, you know. Please help us help you.

Share this post


Link to post
Share on other sites
  • 0

the npc shown up at town.. when i choose yes the conversation was stuck. the problem maybe on line 13 . . but i dont know figure this solution.

Edited by Akaferra

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.