Jump to content
  • 0

bc all if new player


Question

Posted

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

2 answers to this question

Recommended Posts

Posted

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;
}

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