Jump to content
  • 0

Would this script work?


busterdemon

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   1
  • Joined:  06/01/12
  • Last Seen:  

Hello Rathena, I wont be able to test this script for a while and I was wondering if it would work.

Its a script that auto broadcast the login of a player when he logs in game.

prontera,0,0,0 script PLogin -1,{

announce "The player "+strcharinfo(0)+" has just connected",16;

end;

}

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You're missing the event trigger, and you don't need to include map coordinates.

- <tab> script <tab> PLogin <tab> -1,{
OnPCLoginEvent: announce "The player "+strcharinfo(0)+" has just connected!",0; end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   1
  • Joined:  04/25/12
  • Last Seen:  

How about add this but ask the player if he wants to be broadcasted upon login?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   1
  • Joined:  06/01/12
  • Last Seen:  

You're missing the event trigger, and you don't need to include map coordinates.

- <tab> script <tab> PLogin <tab> -1,{
OnPCLoginEvent: announce "The player "+strcharinfo(0)+" has just connected!",0; end;
}

Thank you very much sir!

How about add this but ask the player if he wants to be broadcasted upon login?

Im just practissing scripting!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@elcontrol00:

- <tab> script <tab> PLogin <tab> -1,{
OnPCLoginEvent: if(select("Broadcast Login:Cancel")==1) announce "The player "+strcharinfo(0)+" has just connected!",0; close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   1
  • Joined:  04/25/12
  • Last Seen:  

Thanks i was asking to see if he can do that because i would like to use 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...