Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:22:52 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 314piwm
[Today at 10:21:04 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


Poll

Did you find this any bit useful?

Yes
- 2 (100%)
A bit...
- 0 (0%)
No
- 0 (0%)

Total Members Voted: 0

Voting closed: August 02, 2006, 07:36:48 AM

Site Author : Topic: (Submission) Some little subs for all.  (Read 5113 times)
0 Members and 1 Guest are viewing this topic.
August 02, 2006, 07:36:48 AM
Mid Scripter
Member
**
User No : 1174
Posts: 40
  • 0 credits
  • View Inventory
  • Send Money To Cantinfla
  • Location : The continent of Akaran...
    • View Profile
    Like I promised, I updated it and now it will give you the number of kills...

    first paste this on the OnAttack sub: If you dont have the sub, here it is.
    Code: [Select]
    '******************
    Sub OnAttack(index)
    '******************
    If GetPlayerTarget(index) > 0 and GetPlayerTarget(index) <> index Then
    If GetPlayerHP(GetPlayerTarget(index)) <= 0 Then
    If GetVar("Accounts/" & GetPlayerName(index) & ".ini", "Players_killed", "Kills") & "" = "" Then
    Call Putvar("Accounts/" & GetPlayerName(index) & ".ini", "Players_Killed", "Kills", 1)
    End If
    End If
    End If
    End Sub

    Ok then paste this sub at the end of your main:
    Code: [Select]
    '()()()()()()()()()()()()()
    'By:Cantinfla(John) 2006(c)
    '()()()()()()()()()()()()()
    '*******************
     Sub PvPpoints(index)
    '*******************

    Dim PK
    PK=GetVar("Accounts/" & GetPlayerName(index) & ".ini", "Players_killed", "Kills")
    Call PlayerMsg(index, "You have a PvP score of "& PK &" kills!", 1)
    Call GlobalMsg(index, ""& GetPlayerName(index) &" has a PvP score of "& PK &" Kills!", 4)

    End Sub
    '()()()()()()()()()()()()()
    'By:Cantinfla(John) 2006(c)
    '()()()()()()()()()()()()()

    And of course dont for get to add this on the commands:

    Code: [Select]

    Case "/pkpoints"

           Call PvPpoints(index)

    Exit Sub

    I hope you guys like it.
    « Last Edit: October 15, 2006, 06:07:30 PM by Cantinfla » Logged

    Status = ""

    Proud to be...
         
    August 02, 2006, 08:52:38 AM
    Member
    **
    User No : 1260
    Posts: 84
  • 0 credits
  • View Inventory
  • Send Money To jakeruston
  • Location : In my house, duh!
    • View Profile
    • WWW
    Yeah this wasn't a bad script, don't know if it works though.
    Logged

    Darksoft Games Competition has started!
    Visit http://www.darksoft.co.uk/community/index.php?showtopic=135]Here to vote in the latest match which is:

    Fear V To The Death!

    Note to all entrants who haven't finished their games: Get it done as soon as possible please ;)
    October 14, 2006, 06:03:34 PM
    DFAx
    Guest
    it doesnt work properly
    it will only display your PK status, not your PK score

    make it write your PK score to an ini file
    Logged
    October 14, 2006, 06:15:07 PM
    Mid Scripter
    Member
    **
    User No : 1174
    Posts: 40
  • 0 credits
  • View Inventory
  • Send Money To Cantinfla
  • Location : The continent of Akaran...
    • View Profile
    Lol I forgot about this a long time ago, I'll update it soon.
    Logged

    Status = ""

    Proud to be...
         
    October 14, 2006, 06:22:12 PM
    DFAx
    Guest
    aiite thank bro =)
    can you write this now, ill implement it imediately
    Logged
    October 14, 2006, 06:37:35 PM
    Mid Scripter
    Member
    **
    User No : 1174
    Posts: 40
  • 0 credits
  • View Inventory
  • Send Money To Cantinfla
  • Location : The continent of Akaran...
    • View Profile
    Cant now, but as soon as I can I will.
    Logged

    Status = ""

    Proud to be...
         
    October 14, 2006, 06:39:32 PM
    ♥ Cake ♥
    Global Moderator
    Advanced Eclipser
    *
    User No : 251
    Posts: 1735
  • 72 credits
  • View Inventory
  • Send Money To Tylian!
    • View Profile
    I take it your trying to learn how to script?

    Great job! The comunity needs more scripters!
    Logged

    Real men use Eclipse Origins v1.1.0 to create their games!
    October 14, 2006, 06:44:59 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'm still a bit of a beginner...but I like scripting :)
    DFAx: Sorry I couldnt do anything right now.

    Gah! gtg later all
    Logged

    Status = ""

    Proud to be...
         
    October 15, 2006, 06:05:04 PM
    Mid Scripter
    Member
    **
    User No : 1174
    Posts: 40
  • 0 credits
  • View Inventory
  • Send Money To Cantinfla
  • Location : The continent of Akaran...
    • View Profile
    Like I promised, I updated it and now it will give you the number of kills...

    first paste this on the OnAttack sub: If you dont have the sub, here it is.
    Code: [Select]
    '******************
    Sub OnAttack(index)
    '******************
    If GetPlayerTarget(index) > 0 and GetPlayerTarget(index) <> index Then
    If GetPlayerHP(GetPlayerTarget(index)) <= 0 Then
    If GetVar("Accounts/" & GetPlayerName(index) & ".ini", "Players_killed", "Kills") & "" = "" Then
    Call Putvar("Accounts/" & GetPlayerName(index) & ".ini", "Players_Killed", "Kills", 1)
    End If
    End If
    End If
    End Sub

    Ok then paste this sub at the end of your main:
    Code: [Select]
    '()()()()()()()()()()()()()
    'By:Cantinfla(John) 2006(c)
    '()()()()()()()()()()()()()
    '*******************
     Sub PvPpoints(index)
    '*******************

    Dim PK
    PK=GetVar("Accounts/" & GetPlayerName(index) & ".ini", "Players_killed", "Kills")
    Call PlayerMsg(index, "You have a PvP score of "& PK &" kills!", 1)
    Call GlobalMsg(index, ""& GetPlayerName(index) &" has a PvP score of "& PK &" Kills!", 4)

    End Sub
    '()()()()()()()()()()()()()
    'By:Cantinfla(John) 2006(c)
    '()()()()()()()()()()()()()

    And of course dont for get to add this on the commands:

    Code: [Select]

    Case "/pkpoints"

           Call PvPpoints(index)

    Exit Sub

    I hope you guys like it. =]
    « Last Edit: October 15, 2006, 06:06:57 PM by Cantinfla » Logged

    Status = ""

    Proud to be...
         
    October 15, 2006, 07:01:19 PM
    DFAx
    Guest
    thx for writing, too lazy to do it myself =)

    ===========================

    Did you even test this?

    it doesnt work....and I see a few problems

    such as

    Code: [Select]
    Call GlobalMsg(index, ""& GetPlayerName(index) &" has a PvP score of "& PK &" Kills!", 4)

    incorrect parameters


    also, is this IF statement even checking anything?

    Code: [Select]
    If GetVar("Accounts/" & GetPlayerName(index) & ".ini", "Players_killed", "Kills") & "" = "" Then

    whats the condition its checking?


    first off, make it write to another ini file....second....nvm let me try to write this
    « Last Edit: October 15, 2006, 07:20:30 PM by DFAx » Logged
    October 15, 2006, 07:49:24 PM
    DFAx
    Guest
    it'd actually just be easier to hard code it..
    Logged
    August 21, 2007, 06:33:55 AM
    Newb
    *
    User No : 3836
    Posts: 1
  • 0 credits
  • View Inventory
  • Send Money To danerd100
    • View Profile
    Ty For This Script, it the first one that worked for me on my first try
    Logged
    August 21, 2007, 09:35:24 AM
    Teh Uberleet
    ******
    User No : 2747
    Posts: 2195
  • 0 credits
  • View Inventory
  • Send Money To Munro
    • View Profile
    ......dont necropost
    Logged
    November 11, 2007, 02:14:45 PM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    so doe this one work or not< anyone post the working one or not?
    Logged

    Admiral for President...

    Quote
    "With it we will all find peace and love, and learn to accept each other for who we are, because we all have one common purpose in life, and that is to enjoy its taste"
    - From the Gospel, JBA 5:18


    November 11, 2007, 02:31:11 PM
    The Mapper
    Global Moderator
    Teh Uberleet
    *
    User No : 2021
    Posts: 3980
  • 0 credits
  • View Inventory
  • Send Money To Soljah
  • Location : Australia
    Check my Mapping Tut's out!
    • View Profile
    • WWW
    Yes it should work, But please do not necropost - If you have to ask, PM someone that should know if it works or not, and refer them to this topic and ask what you want.
    Logged

    Need Help with Mapping? Check out my tutorials!
    -[Soljah]- Aspects of Mapping
    -[Soljah]- Guide to Mapping Interior's

    Mapper by trade? Enter your maps into competitions!! Click the Image below!

    January 23, 2008, 04:26:13 PM
    Advanced Member
    ****
    User No : 94
    Posts: 733
  • 0 credits
  • View Inventory
  • Send Money To 9sam1
    • View Profile
    • WWW
    Wont work for me, im guessing its because im using the eclipse that has .dat accounts files,someone should rework this so it works with the .dat files.
    Logged

    January 23, 2008, 05:31:22 PM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    That is a major necro post my good sir.
    Logged

    Admiral for President...

    Quote
    "With it we will all find peace and love, and learn to accept each other for who we are, because we all have one common purpose in life, and that is to enjoy its taste"
    - From the Gospel, JBA 5:18


    December 20, 2008, 03:07:39 AM
    Newb
    *
    User No : 9640
    Posts: 12
  • 0 credits
  • View Inventory
  • Send Money To sToRmY
    • View Profile
    Dont Work to me :( :sad:
    Logged
    October 20, 2009, 07:32:17 AM
    Andy2001291
    Guest
    nice script it will come in handy :P I usly code my own but I have been trying to do this one for ages XD
    Logged
    October 20, 2009, 07:49:15 AM
    [SB] Private First Class
    Active Member
    ***
    User No : 11060
    Posts: 241
  • 0 credits
  • View Inventory
  • Send Money To Xavier Sythe [ZG]
  • Location : Canada
    Game/Website Designer
    • View Profile
    • WWW
    This is a three year old thread. Does that beat the necro-post record?
    Logged


    Free/Cheap Website Design/Creation
    ONLY APPLY IF YOU ARE DEDICATED TO YOUR GAME
    Re: The Neverending Story ^^
    Follow me on Twitter: http://twitter.com/xaviersythe
     


    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.36 seconds with 38 queries.