Jump to content
  • 0

Help Please


rom3r

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   1
  • Joined:  05/05/14
  • Last Seen:  

Been along time since Ive scripted and Ive forgot most of it but Im having a problem with

    L_Basic:
       mes"Select the class you would like to be disguised as.";
	switch( select( "Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Novice" )){
Case 1: setarray .ClassID[0],1; break;
Case 2: setarray .ClassID[0],2; break;
Case 3: setarray .ClassID[0],3; break;
Case 4: setarray .ClassID[0],4; break;
Case 5: setarray .ClassID[0],5; break;
Case 6: setarray .ClassID[0],6; break;
Case 7: setarray .ClassID[0],0; break;
}
for(set .@i,0; .@i<getarraysize(.ClassID){
	set .class$[.@i],.ClassID[.@i];
}
	Changebase @ClassID;
	mes"Apperance Changed!";
	end;

Its not setting the changebase @ClassID.

So everytime i use it it doesnt change to whatever class I selected to disguise as.And its getting annoying because i used to know how to do this.

 

Solved

I remembered right after posting this

This:

for(set .@i,0; .@i<getarraysize(.ClassID){
	set .class$[.@i],.ClassID[.@i];
}
	Changebase @ClassID;
	mes"Apperance Changed!";
	end; 

Should be:

 set @i,.ClassID;

	Changebase @i;
	mes"Apperance Changed!";
	end;
Edited by rom3r
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...