Jump to content
  • 0

fix script functions


icabit

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

INTRODUCTION


so this is ghost's pvp system(http://rathena.org/b...pvp-system-v13/) + mercurial(http://www.eathena.w...pe=post&id=8461)

i merged them to fix some functions

What does this npc do?

-basically a PvP ladder

-Gives the player the option to change his/her announcer in game when killing players biggrin.png

-announcers Dota Announcer Pack, HoN Default Announcer Pack, HoN Ms.Pudding Announcer Pack, HoN Flamboyant Announcer Pack, HoN Ball Of Steel Announcer Pack, HoN British English Announcer Pack, HoN BreakyCPK Announcer Pack, HoN Pimp Announcer Pack, HoN Seductive Announcer Pack,

-Settings can be modified by a gm in game



My reason why i modified this


the reason why i modified this was
-i need it for my server
-i am a HoN/Dota player
-its KEWL
-ghost is still at school and his script is still not stable, i asked permission on his topic in rathena but he didnt replied for like 2-3 days(but i cant help myself to edit it biggrin.png)



How to make it work?


1st
do a query on your database
 

CREATE TABLE IF NOT EXISTS `pvp_rank` (
`char_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`char` varchar(30) NOT NULL,
`kill` int(11) NOT NULL,
`death` int(11) NOT NULL,
`kdr` varchar(30) NOT NULL,
`killingstreak` int(11) NOT NULL,
`multikill` int(11) NOT NULL,
`killingspree` int(11) NOT NULL,
`dominating` int(11) NOT NULL,
`megakill` int(11) NOT NULL,
`unstoppable` int(11) NOT NULL,
`wickedsick` int(11) NOT NULL,
`monsterkill` int(11) NOT NULL,
`godlike` int(11) NOT NULL,
`beyondgodlike` int(11) NOT NULL,
`doublekill` int(11) NOT NULL,
`triplekill` int(11) NOT NULL,
`ultrakill` int(11) NOT NULL,
`rampage` int(11) NOT NULL,
`ownage` int(11) NOT NULL,
`nemesiskill` int(11) NOT NULL,
`feedcount` int(11) NOT NULL,
PRIMARY KEY (`char_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;



 

2nd this wav files : wav

data/wav

then add this npc:  script

finally start your server

go to prontera setup your configurations

or you can setup your default configurations in your npc file


Goals


so basicly what i or we need for impovement is
-gm menu in game for adding more options
like the map @_@ and item reward
i dunno how to add it in menu


and someone who can clean the script biggrin.png



changelog

 


1/15/2013 4:06am ph time
-fixed some announcers
-feed count will be reset after your nemesis gave you a payback
-menu is now working
-save option now added in gm menu, set it to 1 before you make the changes
-fixed streak ended if monster kills you - now your streak can only be ended with players
-fixed loop problems
-finally merged mercurial and ghost pvp system

1/15/2013 11:38 pm ph time
-added a bit of delay on soundeffect
example payback+doublekill+killingspree
now has .5 sec delay before announcing the next kind of sound effect
-fixed announcement when streak is 10 or more

1/16/2013 2:32am ph time
-fixed player menu

1/16/2013 7:31pm ph time
-added announcer fee option (zeny,cash,skull,item+amount)
-added reset item fee option now its (zeny,cash,skull,item+amount)


1/16/2013 8:11pm ph time
-for got to add options to change announcer fee and reset fee in gm option, NOW added

1/29/2013 11:15am ph time
-added kills/death/kdr in pvp statistics
added reset ladder option in gm menu

 

 

4/2/2013 8:35am ph time

-fixed menu bugs

-fixed announce map or all

 


Credits to the orginal authors GHOST and MERCURIAL

you may now test it

i will try to support you guys as much as i can but i cant guarantee you

i will not support using this ladder for your flux or website because im not good at it

Edited by icabit
  • Upvote 1
Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

Bumps need testers

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Umm... where's the download link?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

How to make it work?

1st

do a query on your database

CREATE TABLE IF NOT EXISTS `pvp_rank` (
`char_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`char` varchar(30) NOT NULL,
`kill` int(11) NOT NULL,
`death` int(11) NOT NULL,
`kdr` varchar(30) NOT NULL,
`killingstreak` int(11) NOT NULL,
`multikill` int(11) NOT NULL,
`killingspree` int(11) NOT NULL,
`dominating` int(11) NOT NULL,
`megakill` int(11) NOT NULL,
`unstoppable` int(11) NOT NULL,
`wickedsick` int(11) NOT NULL,
`monsterkill` int(11) NOT NULL,
`godlike` int(11) NOT NULL,
`beyondgodlike` int(11) NOT NULL,
`doublekill` int(11) NOT NULL,
`triplekill` int(11) NOT NULL,
`ultrakill` int(11) NOT NULL,
`rampage` int(11) NOT NULL,
`ownage` int(11) NOT NULL,
`nemesiskill` int(11) NOT NULL,
`feedcount` int(11) NOT NULL,
PRIMARY KEY (`char_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

2nd this wav files : http://www.mediafire...r4pxhsrsn85y486 to your data.grf

data/wav

then add this npc: http://pastebin.com/ePbV08SL to your npc's

Edited by icabit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  76
  • Reputation:   1
  • Joined:  10/11/12
  • Last Seen:  

/omgill try later /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

still no feed back :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I'm sorry icabit, yesterday I was on mobile phone, and forgot to apply your script.

Why don't you use 'query_sql' in your script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

for creating the table? or?

cause im using sql query to record player stats

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I mean to join the query using 'query_sql' so the script and the query code won't be separated.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

im not good with queries :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   2
  • Joined:  09/11/12
  • Last Seen:  

Pretty neat, I know Nana is capable of cleaning this script up a little bit.

Keep up the work guys.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

hopefully it will be tested i haven't got any feed backs yet dunno if this is really working properly

Edited by icabit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

i just tried it and it's very awesome, still testing if there are bugs but 10/10 for this. thankyou. PS. good job for a very long script.

---- i tried to delete my pvp_rank table to reset the recorded stats of every player but it keeps coming back. how do i reset it? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/10/13
  • Last Seen:  

i just tried it and it's very awesome, still testing if there are bugs but 10/10 for this. thankyou. PS. good job for a very long script.

---- i tried to delete my pvp_rank table to reset the recorded stats of every player but it keeps coming back. how do i reset it? :)

im not yet at home >.< my password for my main account is in my pc(in a notepad) this is just my proxy account

im at school at the moment waiting for my next class to begin :D

thx for the review of the script

i will test it right away when i arrive at home

for now try to empty the pvp_rank table and check again >.< dont delete it

ill add an option soon to reset the whole ladder. sorry i forgot to add that

sorry for making the script so long that's why i request for reorganizing this script

Edited by icabitproxy
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

i would also like to request to add a player menu to ask on how many kill points they have. :) i think it would be good. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

i would also like to request to add a player menu to ask on how many kill points they have. :) i think it would be good. :D

ayt ill try it later when i wake up i need to sleep badly for now

thx for your suggestion and opinion

i just tried it and it's very awesome, still testing if there are bugs but 10/10 for this. thankyou. PS. good job for a very long script.

---- i tried to delete my pvp_rank table to reset the recorded stats of every player but it keeps coming back. how do i reset it? :)

i would also like to request to add a player menu to ask on how many kill points they have. :) i think it would be good. :D

content in pastebin link now updated http://pastebin.com/ePbV08SL

added kills/death/kdr in pvp statistics

added reset ladder option in gm menu

Sorry for double posting >.>

Edited by icabit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

im trying it out now and its very good. thankyou for this script. :D 10/10

i'll post if i ever found any bugs. :D

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

im trying it out now and its very good. thankyou for this script. :D 10/10

i'll post if i ever found any bugs. :D

thx for the review

i hope i can improve this on my own soon :( sad to say im a bit busy with school projects at the moment

>.>

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

//Announcer Setting

set $icaBroadcast, 0; //Where do you want to broadcast? (0:bc_all|1:bc_map)

my problem is its not announcing everywhere.. i already set it to 0 but it only announces the kills on pvp rooms

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

ill try to work on it

im kinda busy at school

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

im trying to add this to fluxcp. hmm. but im not sure how maybe anybody here has an idea?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

nah. i want to use this for my pvp ladder at website. please help me :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

//Announcer Setting

set $icaBroadcast, 0; //Where do you want to broadcast? (0:bc_all|1:bc_map)

my problem is its not announcing everywhere.. i already set it to 0 but it only announces the kills on pvp rooms

now fixed

http://pastebin.com/ePbV08SL

link updated now its set $icaBroadcast, 0; //Where do you want to broadcast? (0:bc_map|1:bc_all)

 

it was working ath the 1st place i just typed it incorrectly it was supposed to be 1 for bc_all xD

 

 

nah. i want to use this for my pvp ladder at website. please help me  :(

 

im trying to add this to fluxcp. hmm. but im not sure how maybe anybody here has an idea?

im not good with website stuff >.>

Edited by icabit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

//Announcer Setting

set $icaBroadcast, 0; //Where do you want to broadcast? (0:bc_all|1:bc_map)

my problem is its not announcing everywhere.. i already set it to 0 but it only announces the kills on pvp rooms

now fixed

http://pastebin.com/ePbV08SL

link updated now its set $icaBroadcast, 0; //Where do you want to broadcast? (0:bc_map|1:bc_all)

 

it was working ath the 1st place i just typed it incorrectly it was supposed to be 1 for bc_all xD

 

 

>nah. i want to use this for my pvp ladder at website. please help me  :(

 

im trying to add this to fluxcp. hmm. but im not sure how maybe anybody here has an idea?

im not good with website stuff >.>

 

 

hope 1 day u will fix all :)

icabit the best! mihahahaha~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

when i using this, it make my client crash! HMMM~~~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

you have to put the wav folder in your grf

http://www.mediafire.com/?r4pxhsrsn85y486

make sure you use my wav files and not ghost's wav files since i updated my script with new announcers

when i using this, it make my client crash! HMMM~~~

Edited by icabit
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...