Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:19:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by Ertzel
[Today at 10:11:57 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Pages: [1] 2
Site Author : Topic: Block Player Script  (Read 4806 times)
0 Members and 1 Guest are viewing this topic.
February 04, 2006, 08:50:25 AM
Active Member
***
User No : 84
Posts: 171
  • 0 credits
  • View Inventory
  • Send Money To Steve
  • Location : Pacific,MO
    • View Profile
    • WWW
    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
    Code: [Select]

    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.
    Code: [Select]

    Case 0
    If getplayerlevel(indes) < !LEVEL! Then
         Call blockPlayer(index)
    End if

    Or you couls do it in a sub like so
    Code: [Select]

    Sub NeedToBeBlock()
    If getplayerlevel(indes) < !LEVEL! Then
         Call blockPlayer(index)
    End if

    And here is the final
    Code: [Select]

    Case "/Level"
    If getplayerlevel(indes) < !LEVEL! Then
         Call blockPlayer(index)
    End if
    Exit Sub

    Here is the newest command you can use.
    Code: [Select]

    Call BlockPlayer(index)
    Logged

    Your Friend, (http://www.nextech.byethost.com)
    Steve :) Paperdoll God!

    February 06, 2006, 10:50:27 AM
    Newb
    *
    User No : 121
    Posts: 13
  • 0 credits
  • View Inventory
  • Send Money To Unknown_raven
    • View Profile
    *EDIT*Anyhow it was made by me.
    Logged

    February 07, 2006, 05:40:43 PM
    Active Member
    ***
    User No : 195
    Posts: 173
  • 0 credits
  • View Inventory
  • Send Money To konceptz
    • View Profile
    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
    Similac Child
    Owner
    Demi God
    *
    User No : 13358
    Posts: 7477
  • 1425 credits
  • View Inventory
  • Send Money To Marsh
  • Comfort the disturbed disturb the comfortable
    • View Profile
    • WWW
    Quote from: konceptz
    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
    Intellectual and Creative Troll.
    Veteran
    Teh Uberleet
    *
    User No : 58
    Posts: 2205
  • 146 credits
  • View Inventory
  • Send Money To [Pie] ICT
  • Location : Philly
    <3 you
    • View Profile
    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
    Uses Harden
    Administrator
    Advanced Eclipser
    *
    User No : 8
    Posts: 1708
  • 156 credits
  • View Inventory
  • Send Money To Spike
  • Location : Viridian Forest
    • View Profile
    very good *claps*
    Logged
    February 08, 2006, 02:55:52 PM
    Active Member
    ***
    User No : 195
    Posts: 173
  • 0 credits
  • View Inventory
  • Send Money To konceptz
    • View Profile
    ok, OK I get it it's a good script...
    Logged
    February 20, 2006, 08:44:12 AM
    Active Member
    ***
    User No : 84
    Posts: 171
  • 0 credits
  • View Inventory
  • Send Money To Steve
  • Location : Pacific,MO
    • View Profile
    • WWW
    Sorry about that Unknown_raven I will add it and you can use this script for may things as so:
    Code: [Select]

    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

    Your Friend, (http://www.nextech.byethost.com)
    Steve :) Paperdoll God!

    February 20, 2006, 08:50:03 AM
    Lord Of Spleens
    Administrator
    Teh Uberleet
    *
    User No : 166
    Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    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
    Newb
    *
    User No : 242
    Posts: 15
  • 0 credits
  • View Inventory
  • Send Money To mikis
    • View Profile
    this script is wery useful  :D
    Logged
    February 23, 2006, 12:15:33 PM
    Intellectual and Creative Troll.
    Veteran
    Teh Uberleet
    *
    User No : 58
    Posts: 2205
  • 146 credits
  • View Inventory
  • Send Money To [Pie] ICT
  • Location : Philly
    <3 you
    • View Profile
    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
    Newb
    *
    User No : 381
    Posts: 12
  • 0 credits
  • View Inventory
  • Send Money To tommy
    • View Profile
    cool (#11)
    2 b honest love the script man I think its very usefull
    Logged
    March 20, 2006, 12:29:50 PM
    Active Member
    ***
    User No : 282
    Posts: 396
  • 0 credits
  • View Inventory
  • Send Money To n0madic0debc
  • Location : Lost somewhere dont know, NYC
    • View Profile
    This script I dont see the point of it.....
    Logged


    September 24, 2006, 08:12:11 AM
    Contest Winner
    Advanced Eclipser
    *
    User No : 1532
    Posts: 1483
  • 272 credits
  • View Inventory
  • Send Money To l0lz!
    • View Profile
    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
    Guest
    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
    Guest
    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
    Veteran
    Advanced Eclipser
    *
    User No : 192
    Posts: 1600
  • 120 credits
  • View Inventory
  • Send Money To Bobosk
    • View Profile
    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
    Mid Scripter
    Member
    **
    User No : 1174
    Posts: 40
  • 0 credits
  • View Inventory
  • Send Money To Cantinfla
  • Location : The continent of Akaran...
    • View Profile
    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
    Advanced Member
    ****
    User No : 4226
    Posts: 620
  • 0 credits
  • View Inventory
  • Send Money To .:Mike:.
  • Location : TEMPE
    bfmv!
    • View Profile
    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
    Newb
    *
    User No : 10544
    Posts: 1
  • 0 credits
  • View Inventory
  • Send Money To Invincibob
    • View Profile
    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
    Pages: [1] 2
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.421 seconds with 29 queries.