Jump to content
  • 0

Help me !!! about Rebirth script


saovarott159

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   1
  • Joined:  10/06/16
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

1.

if (#CASHPOINTS < 33) goto nocash; 

 

2.

atcommand "@stpoint 2597";

change to

StatusPoint = 2597;

 

Edited by Emistry
  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  132
  • Reputation:   8
  • Joined:  07/19/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   1
  • Joined:  10/06/16
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  132
  • Reputation:   8
  • Joined:  07/19/12
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   1
  • Joined:  10/06/16
  • Last Seen:  

1 hour ago, Emistry said:

1.


if (#CASHPOINTS < 33) goto nocash; 

 

2.


atcommand "@stpoint 2597";

change to


StatusPoint = 2597;

 

Thank you  so much...

Edited by saovarott159
Link to comment
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.   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.

×
×
  • Create New...