Jump to content
  • 0

Help me !!! about Rebirth script


Question

Posted
yes:
if (baselevel < 150) goto nolv;
if (cash < 33) goto nocash;
atcommand "@cash -33";
atcommand "@stpoint 2597";
set BaseLevel,BaseLevel - 0;
Announce "[Rebirth Unit] : [" + strcharinfo(0) + "] Rebirth!!!",8,0x33CCFF;
close;

Hi .. help me please

1. I want check cashpoint befor rebirth..

if (cash < 33) goto nocash;   <<<  not work

 

2. I want don't show mes (on picture) "Number of status points changed" 


Thank you so much...

1112.JPG

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

1.

if (#CASHPOINTS < 33) goto nocash; 

 

2.

atcommand "@stpoint 2597";

change to

StatusPoint = 2597;

 

Edited by Emistry
  • Upvote 2
  • 0
Posted
13 minutes ago, Valiente said:

Show more of the script, like adding the nocash label.

Hi...

function	script	item_juti_Unit	{

mes "^0065DF[ Rebirth ]^000000";
mes "Hello ^FF0000[ " + strcharinfo(0) + " ]^000000";
mes "^FF0000:: Detail rebirth ::^000000";
mes "- Use 33 Unit";
mes "- Lv. 150 after rebirth";
mes "- get 2,597 point...";
next;

if(baselevel > 99) goto lvok;

lvok:
mes "^0065DF[ Rebirth ]^000000";
mes "Are you sure";
next;
menu "Sure",yes,"no",Lno;

yes:
if (baselevel < 150) goto nolv;
//if (cash < 33) goto nocash;
atcommand "@cash -33";
atcommand "@stpoint 2597";
set BaseLevel,BaseLevel - 0;
Announce "[Rebirth Unit] : [" + strcharinfo(0) + "] Rebirth!!!",8,0x33CCFF;
close;

Lno:
mes "^0065DF[ Rebirth ]^000000";
mes "Bye....";
close;

nolv:
mes "^0065DF[ Rebirth ]^000000";
mes "check again";
close;

nocash:
mes "^0065DF[ Rebirth ]^000000";
mes "no cash";
mes "check again";
close;

}

-	script	juti::juti_Unit	-1,{

		callfunc "item_juti_Unit";

		close;
		
OnInit: 
waitingroom "Rebirth unit", 0;
end;

	}

prontera,160,97,4	duplicate(juti_Unit)	Rebirth#02	936

 

  • 0
Posted

You forgot (or probably not aware) to put end; at the end of your labels.

end; // Put this at the end of each label. (e.g nocash label, nolvl label.. etc)
lvok:
	mes "^0065DF[ Rebirth ]^000000";
	mes "Are you sure";
	next;
	menu "Sure",yes,"no",Lno;
end;

yes:
	if (baselevel < 150) goto nolv;
	//if (cash < 33) goto nocash;
	atcommand "@cash -33";
	atcommand "@stpoint 2597";
	set BaseLevel,BaseLevel - 0;
	Announce "[Rebirth Unit] : [" + strcharinfo(0) + "] Rebirth!!!",8,0x33CCFF;
	close;	
end;


Lno:
	mes "^0065DF[ Rebirth ]^000000";
	mes "Bye....";
	close;
end;

nolv:
	mes "^0065DF[ Rebirth ]^000000";
	mes "check again";
	close;
end;

nocash:
	mes "^0065DF[ Rebirth ]^000000";
	mes "no cash";
	mes "check again";
	close;
end;

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...