Jump to content
  • 0

user registration for event


Dynasty

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

HI

 

Well i only need a user registration script for my event (hunger games) is like a all vs all

 

i adapt one but it doesn't work

 

Bye and thk

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

prontera,150,150,5	script	sample	56,{
	if ( select( "register", "delete the list" ) == 2 ) {
		deletearray .aid_reg, .size_reg;
		deletearray .cid_reg, .size_reg;
		dispbottom "list now empty";
	}
	else {
		.@myaid = getcharid(3);
		while( .@i < .size_reg && .aid_reg[.@i] != .@myaid ) .@i++;
		if ( .@i != .size_reg ) {
			dispbottom "already register";
			end;
		}
		.aid_reg[.size_reg] = .@myaid;// account id
		.cid_reg[.size_reg] = getcharid(0);// charid
		.size_reg++;
		dispbottom "you are now on the list";
	}
	end;
}

it's a sample. The variable to register depends on the event you want to make

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

THK :D

 

CLOSED IT

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