| February 04, 2006, 08:50:25 AM |
|
|
 |
|
|
I never knew who made this script but whoever did all the credit goes to you.I will show you what to add at the bottom of you main.txt.An them 2 examples.
Add this to the bottom of you main.txt
Sub BlockPlayer(index) playerdir = GetPlayerDir(index) Select Case playerdir Case 0 Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)+1) Case 1 Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)-1) Case 2 Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)+1, GetPlayerY(index)) Case 3 Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)-1, GetPlayerY(index)) End Select End Sub
This will make it all work now I will give to examples.
Case 0 If getplayerlevel(indes) < !LEVEL! Then Call blockPlayer(index) End if
Or you couls do it in a sub like so
Sub NeedToBeBlock() If getplayerlevel(indes) < !LEVEL! Then Call blockPlayer(index) End if
And here is the final
Case "/Level" If getplayerlevel(indes) < !LEVEL! Then Call blockPlayer(index) End if Exit Sub
Here is the newest command you can use.
Call BlockPlayer(index)
|
|
|
|
|
Logged
|
|
|
|
| February 06, 2006, 10:50:27 AM |
|
|
*EDIT*Anyhow it was made by me.
|
|
|
|
|
Logged
|
|
|
|
| February 07, 2006, 05:40:43 PM |
|
|
this script seems to be completely useless no offence but I really don't see use in it.. :(
|
|
|
|
|
Logged
|
|
|
|
| February 07, 2006, 05:46:21 PM |
|
|
this script seems to be completely useless no offence but I really don't see use in it.. :( Its very usefull. If you only want high level charectors to be allowed in.
|
|
|
|
|
Logged
|
don't call your mother - don't call your priest don't call your doctor - call the police you bring the razor blade - I'll bring the speed Take off your coat - it's gonna be a long night
|
|
|
| February 07, 2006, 05:58:39 PM |
|
|
yeah this is a good script and you can always alter it so it can block anything
|
|
|
|
|
Logged
|
  [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ] dude, admin, I can get away with this shit
|
|
|
| February 08, 2006, 12:47:16 PM |
|
|
|
|
|
|
|
Logged
|
|
|
|
| February 08, 2006, 02:55:52 PM |
|
|
ok, OK I get it it's a good script...
|
|
|
|
|
Logged
|
|
|
|
| February 20, 2006, 08:44:12 AM |
|
|
Sorry about that Unknown_raven I will add it and you can use this script for may things as so:
Sub AdminGuild() If GetPlayerGuild(index) = "Admin Guild" Then Call PlayerMsg(index, "Welcome to the guild", 3) Else Call PlayerMsg(index, "You are not welcomed you are no admin", 3) Call BlockPlayer(index) End If End Sub
There are so many ways to use this script.
|
|
|
|
|
Logged
|
|
|
|
| February 20, 2006, 08:50:03 AM |
|
|
This is an incredibly useful piece of script. anyone who cant see the value here doesnt really understand what they are looking at.
|
|
|
|
|
Logged
|
Apparently ICT thinks that: [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ] If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
|
|
|
| February 23, 2006, 11:31:14 AM |
|
|
this script is wery useful :D
|
|
|
|
|
Logged
|
|
|
|
| February 23, 2006, 12:15:33 PM |
|
|
ALRIGHT ALRIGHT we all know its usefull
|
|
|
|
|
Logged
|
  [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ] dude, admin, I can get away with this shit
|
|
|
| March 19, 2006, 04:42:58 PM |
|
|
2 b honest love the script man I think its very usefull
|
|
|
|
|
Logged
|
|
|
|
| March 20, 2006, 12:29:50 PM |
|
|
This script I dont see the point of it.....
|
|
|
|
|
Logged
|
|
|
|
| September 24, 2006, 08:12:11 AM |
|
|
yea but it onlly blocks one level right? what about one lvl and up? for example... block level 70 but only level 70's cant get through if your lower than it then u can go through so it dosent matter what level you are you can pass through exept lvl 70? couldnt you put lvl 50 to level 90?
|
|
|
|
|
Logged
|
|
|
|
| October 11, 2006, 03:48:51 AM |
|
Cantifla@School
|
Case "/Level" If getplayerlevel(index) <= !LEVEL! Then Call blockPlayer(index) End if Exit Sub
there, adding a "<=" (Less than equal to) in there will only block players that are less than equal to !LEVEL!(example: 70)
|
|
|
|
|
Logged
|
|
|
|
| October 11, 2006, 04:12:30 AM |
|
Cantinfla@School
|
Above post edit:
If you want to block a certain level range(ex: 1 to 20) Do this:
Case "/Level" If getplayerlevel(index) <= 1 Then If getplayerlevel(index) >= 20 Then Call blockPlayer(index) End If End If Exit Sub
This means players over level 20 may pass, but not below.
|
|
|
|
|
Logged
|
|
|
|
| October 11, 2006, 09:01:37 AM |
|
|
There's a small problem with that Cantinfla, the case needs to be Case # not Case "/level".. Case "/level" is for saying it... (like "/help" and such)
|
|
|
|
|
Logged
|
|
|
|
| October 11, 2006, 08:33:47 PM |
|
|
I just copyed over what he wrote, my bad if I didnt noticed that, was posting fast. =p
|
|
|
|
|
Logged
|
Status = "  " Proud to be...
|
|
|
| October 17, 2007, 12:40:30 PM |
|
|
I have a question...In my game theres a training room for people under level 10 so I put
Case 0 If getplayerlevel(indes) <= 10 Then Call blockPlayer(index) End if
How do I acually block everyone over level 10 from getting in?
|
|
|
|
|
Logged
|
Past Eclipser Returned ^_^
|
|
|
| March 24, 2009, 11:00:28 AM |
|
|
The way you have it set says anyone 10 and below isn't allowed in. Here's what you want.
Case 0 If getplayerlevel(indes) => 10 Then Call blockPlayer(index) End if
|
|
|
|
|
Logged
|
|
|
|
|