Jump to content
  • 0

bc all if new player


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Hi,

I need a script where bc all if somebody make a new char and log in first time.

Example:

- script JoinER -1,{
OnInit:
end;
OnPCLoginEvent:
if (JoinER == 0){
 set @player$,strcharinfo(0);
 announce "Unser neuester Spieler heißt "+@player$+"! Willkommen bei Storm of Ragnarok!",bc_all;
 set JoinER,1;
 end;
}

One this script works bute now it doesn't ..

Please help me ^^

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

hmm, in the codebox you posted it's missing 1 right-curly (not sure if your script is missing it too, or maybe you didn't copy-paste the last line?)

Here's another way, without needing to create a permanent char variable:

// put this NPC on the same cell new chars spawn on 
// see /conf/char_athena.conf --> start_point

new_1-1,53,111,0	script	#JoinER	139,1,1,{
OnTouch:
if (Class==Job_Novice && BaseExp==0 && BaseLevel==1) {
	announce "Unser neuester Spieler heißt "+ strcharinfo(0) +"! Willkommen bei Storm of Ragnarok!",bc_all;
	set BaseExp,1; // (no need to create a new variable)
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Thank you ! I'll Try :>

EDIT:

WORKS THANK YA !

Edited by Lightning Farron
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...