Jump to content
  • 0

The npc can change the size


Question

8 answers to this question

Recommended Posts

Posted
http://pastebin.com/dKSXSF2n 

login again,the size will become normal

And how can I fix the size

After login again It still here?

I think it need create a SQL table?

But I don't know how to do this

Hope that someone can help me

Thanks a lot !!!!!!!! /kis2

 

 

When player with size logout and then login again the size will remain?

Posted

Hmm, something like this would probably work too.

-	script	size_changer	-1,{

	OnPCLoginEvent:
		if( my_size )
			atcommand "@size "+my_size;
		end;
		
	OnSizeMe:
		my_size = atoi( .@atcmd_parameters$ );
		if( my_size > 2 || my_size < 0 ) my_size = 0;
		atcommand "@size "+my_size;
		end;
		
	OnInit:
		bindatcmd "size","size_changer::OnSizeMe",0,99;
	
}
Posted

 

Hmm, something like this would probably work too.

-	script	size_changer	-1,{

	OnPCLoginEvent:
		if( my_size )
			atcommand "@size "+my_size;
		end;
		
	OnSizeMe:
		my_size = atoi( .@atcmd_parameters$ );
		if( my_size > 2 || my_size < 0 ) my_size = 0;
		atcommand "@size "+my_size;
		end;
		
	OnInit:
		bindatcmd "size","size_changer::OnSizeMe",0,99;
	
}

 

It is OK Thanks Skorm and Radian

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