Jump to content
  • 0

baby woe loadevent


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Hello, i find a script in google that is suposed to warp the players out of the castle if they are not baby

 

i teste in my test server and i had no errors, but in my test server nothing happens when i go into the castle, here is the script

	script	babywoe	-1,{
//setarray .Mapas$[0],"prtg_cas01","prtg_cas02","prtg_cas03";
OnInit:
setarray .IdBaby[0],23,4046,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,40422,4043,4044,4045;
setarray .Maps$[0],"gefg_cas04","aldeg_cas04";
end;
OnPCLoadMapEvent:
for (set .@c, 0; .@c < getarraysize(.Maps$); set .@c, .@c + 1)
if (.Maps$[.@c] != strcharinfo(3)) end;
for( set .@i, 0; .@i < getarraysize(.IdBaby); set .@i, .@i + 1 )
if(class ==.IdBaby[.@i]) end;
warp "celerian",33,73;// just a custom map 'Celerian'
dispbottom "Only Baby Class is allowed to enter.";
end;
} // End Script
aldeg_cas04	mapflag	loadevent
gefg_cas04	mapflag	loadevent

i would like to now how to kae it work ):

 

thanks in advance o:!

Link to comment
Share on other sites

3 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:  

It doesn't work because of

if (.Maps$[.@c] != strcharinfo(3)) end;
-	script	babywoe	-1,{
OnPCLoadMapEvent:
	if ( compare( "gefg_cas04|aldeg_cas04",strcharinfo(3) ) != 0 && eaclass()&EAJL_BABY == 0 ) {// "gefg_cas04|aldeg_cas04" yours woe maps
		warp "celerian",33,73;// just a custom map 'Celerian'
		dispbottom "Only Baby Class is allowed to enter.";
	}
	end;
}
aldeg_cas04	mapflag	loadevent
gefg_cas04	mapflag	loadevent
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/02/16
  • Last Seen:  

can someone tech me how to use this script.. im newbie in this

thx alot

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

ahh thanks you so much o:!!!!!!! gonna try it :3

 

Edit:

Thank you so much it worked totally :33

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