Eclipse
January 05, 2009, 06:36:44 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Anywhere to download the v3 beta? by Gwendalin
Today at 06:33:20 PM

Disparity Recruiting by The Tribal
Today at 06:33:19 PM

Spike's Adminishness! by The Tribal
Today at 06:31:04 PM

Does anybody know the math involved in dmg to def? by Syner
Today at 06:30:40 PM

My New Computer! by The BanHammer! [Thor!]
Today at 06:25:05 PM

[E++] Fun with sprites! by Simius Cruentus
Today at 06:23:18 PM

how will the person above die. by The Tribal
Today at 06:20:30 PM

Need forum logos by ʇıunpp ʎqɹıʞ࣭
Today at 06:19:31 PM

Eclipse Traffic by Simius Cruentus
Today at 06:16:37 PM

Color Association by Gwendalin
Today at 06:16:34 PM

Members Online +-
16 Guests, 23 Users
Devogen,
Spike,
Jax The Mighty,
Syner,
Seba,
The Tribal,
Sk3wer,
Dimx,
THE Tim,
FS:CG Admin[Shadowwulf],
kdjrgej,
Gwendalin,
Echo ♥ Pie,
calamity,
The BanHammer! [Thor!],
Greendude120,
Peter,
EnigmaticSoul,
Zananok,
tiggilyboo,
Hikaru,
grenegg1,
Simius Cruentus
Poll
Question: Did you find this any bit useful?  (Voting closed: August 02, 2006, 07:36:48 AM)
Yes - 2 (100%)
A bit... - 0 (0%)
No - 0 (0%)
Total Members Voted: 0

Pages: [1]
  Print  
Author Topic: (Submission) Some little subs for all.  (Read 2290 times)
0 Members and 1 Guest are viewing this topic.
Cantinfla
Mid Scripter
Member
**
Offline Offline

Posts: 40



View Profile Email
« on: August 02, 2006, 07:36:48 AM »

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.
jakeruston
Member
**
Offline Offline

Posts: 85


View Profile WWW Email
« Reply #1 on: August 02, 2006, 08:52:38 AM »

Yeah this wasn't a bad script, don't know if it works though.
DFAx
Guest


Email
« Reply #2 on: October 14, 2006, 06:03:34 PM »

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
Cantinfla
Mid Scripter
Member
**
Offline Offline

Posts: 40



View Profile Email
« Reply #3 on: October 14, 2006, 06:15:07 PM »

Lol i forgot about this a long time ago, i'll update it soon.
DFAx
Guest


Email
« Reply #4 on: October 14, 2006, 06:22:12 PM »

aiite thank bro =)
can you write this now, ill implement it imediately
Cantinfla
Mid Scripter
Member
**
Offline Offline

Posts: 40



View Profile Email
« Reply #5 on: October 14, 2006, 06:37:35 PM »

Cant now, but as soon as i can i will.
The Emblem
Uber Programmer
Emblem
Advanced Member
******
Offline Offline

Posts: 517


The game


View Profile Email
« Reply #6 on: October 14, 2006, 06:39:32 PM »

I take it your trying to learn how to script?

Great job! The comunity needs more scripters!
Cantinfla
Mid Scripter
Member
**
Offline Offline

Posts: 40



View Profile Email
« Reply #7 on: October 14, 2006, 06:44:59 PM »

I'm still a bit of a beginner...but i like scripting :)
DFAx: Sorry I couldnt do anything right now.

Gah! gtg later all
Cantinfla
Mid Scripter
Member
**
Offline Offline

Posts: 40



View Profile Email
« Reply #8 on: October 15, 2006, 06:05:04 PM »

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. =]
DFAx
Guest


Email
« Reply #9 on: October 15, 2006, 07:01:19 PM »

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
DFAx
Guest


Email
« Reply #10 on: October 15, 2006, 07:49:24 PM »

it'd actually just be easier to hard code it..
danerd100
Newb
*
Offline Offline

Posts: 1


View Profile Email
« Reply #11 on: August 21, 2007, 06:33:55 AM »

Ty For This Script, it the first one that worked for me on my first try
Munro
Advanced Eclipser
*****
Offline Offline

Posts: 1,397


View Profile Email
« Reply #12 on: August 21, 2007, 09:35:24 AM »

......dont necropost
RamBONE
Chit Chat God
Teh Uberleet
*****
Offline Offline

Posts: 3,876


Creative Scripter


View Profile Email
« Reply #13 on: November 11, 2007, 02:14:45 PM »

so doe this one work or not< anyone post the working one or not?
Soljah
The Mapper
Global Moderator
Teh Uberleet
*
Offline Offline

Posts: 3,242

Check my Mapping Tut's out!


View Profile WWW Email
« Reply #14 on: November 11, 2007, 02:31:11 PM »

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.
9sam1
Advanced Member
****
Offline Offline

Posts: 751


View Profile WWW Email
« Reply #15 on: January 23, 2008, 04:26:13 PM »

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.
RamBONE
Chit Chat God
Teh Uberleet
*****
Offline Offline

Posts: 3,876


Creative Scripter


View Profile Email
« Reply #16 on: January 23, 2008, 05:31:22 PM »

That is a major necro post my good sir.
sToRmY
Newb
*
Offline Offline

Posts: 11


View Profile Email
« Reply #17 on: December 20, 2008, 03:07:39 AM »

Dont Work to me :( :sad:
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.378 seconds with 36 queries.