Jump to content

Ghost's Scripts [Latest: Ghost's PvP System v1.3]


Recommended Posts

Posted (edited)

Can someone help me?

I have succesfully :

- Upload .wav files

- import pvp_rank table

- edit the script about selected map (by Emistry)

this one

if(.PvPMap$[0] != "All"){
for(set .@i, 0; .@i < getarraysize(.PvPMap$); set .@i, .@i + 1)
 if(strcharinfo(3) != .PvPMap$[.@i])
  set .@MatchMap,1;
}
if( !.@MatchMap ) end;

and this one

if(.PvPMap$[0] != "All"){
for(set .@i, 0; .@i < getarraysize(.PvPMap$) ; set .@i, .@i + 1){
 if(strcharinfo(3) != .PvPMap$[.@i]){ end; }
 set Death, Death + 1;
}
}

But, when I want to use the Announcer Setiing,

this happen :

IpH9T.jpg

4PHH3.jpg

and from map-server only this 'debug' appear :

i9FpU.jpg

Then after re-login. I'm going to try the 'sound' at the selected pvp map, the same error/crash window appear after 2 kills.

Am I missing anything here?

I really want to use this script. It's just cool!

problem when setting list of maps Announce doesn't work anymore:

setarray .PvPMap$[0], "guild_vs3","guild_vs1","pvp_y_8-2","1@orcs"; //List all pvp maps here (Index 0:"All" to enable all maps)

same problems here like ngek202

Got the same problem with NGEK smile.png) how to fix that?

Same problem with Ngek and Hysoka.. Is there an update? Did someone already fixed it? Thanks! :)

I have the same problem with ngek...

This script is very usefull though.

Read this : http://rathena.org/b...__20#entry81846

I think my Problems Solved!

I've made a mistake about data folder (for wav files) /oops

Edited by uDe
Posted

Thanks Emistry ani_no1.gif It's working now..

Oh noticed when I tested killing spree and double kill I think there's a problem with it..

screenrAthena009.jpg

SinX wasn't killed but everytime he gets a Kill the Announcer announces that the one who he killed ended he's Killing Streak(Killing Spree) .

same problems here like ngek202

Got the same problem with NGEK smile.png) how to fix that?

Same problem with Ngek and Hysoka.. Is there an update? Did someone already fixed it? Thanks! :)

I have the same problem with ngek...

This script is very usefull though.

Does anyone have a way to proper fix this?

  • 2 weeks later...
Posted

uhm....i am lazy to re-organize that part so i just do it like this...

the problem for didnt announce...is because of this part.

if(.PvPMap$[0] != "All"){
for(set .@i, 0; .@i < (getarraysize(.PvPMap$) - 1); set .@i, .@i + 1){
if(strcharinfo(3) != .PvPMap$[.@i]){ end; }
}
}

as you can see from the line...

when the script is doing checking wether the users is in the map listed in the array or not..

it STOPPED when the users are not located at the 1st map.. ( .PvPMap$[.@i] )

the loop process start with the 1st number..so it checking the 1st map...

but you end the process when the users are not in the 1st map..

that's why it doesnt announce...

i just simply write 1 here.

if(.PvPMap$[0] != "All"){
for(set .@i, 0; .@i < getarraysize(.PvPMap$); set .@i, .@i + 1)
 if(strcharinfo(3) != .PvPMap$[.@i])
  set .@MatchMap,1;
}
if( !.@MatchMap ) end;

and same goes to this part

if(.PvPMap$[0] != "All"){
for(set .@i, 0; .@i < getarraysize(.PvPMap$) ; set .@i, .@i + 1){
 if(strcharinfo(3) != .PvPMap$[.@i]){ end; }
 set Death, Death + 1;
}
}

modify it like what i did at above or use your own way...

and why use

(getarraysize(.PvPMap$) - 1)

hmm ? is your own mistake typo or ? i dont think there is needed for you to minus the count here ^^ ani_heh.gif


Advise :

for this part.

if((.PvPMap$[0] == "ALL")||(.PvPMap$[0] == "ALl")||(.PvPMap$[0] == "AlL")||(.PvPMap$[0] == "aLL")||(.PvPMap$[0] == "aLl") || (.PvPMap$[0] == "alL")){ setarray .PvPMap$[0], "All"; }

actually you can just do it like this

if( compare( .PvPMap$[0],"All" ) ){
//blablabla.............
}

When i edit this, the other code error. I've no idea how to fix the script.

Can someone just share the working edited script?

  • 2 weeks later...
Posted

guyz how to put the SQL. im havng trouble. when i try to read this to the server

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/GuiltyRO/Pvp Ladde
r.txt', line '565'. Stopping...
* w1=CREATE TABLE IF NOT EXISTS `pvp_rank` (
* w2=
* w3=
* w4=

then when i insert it to sql

Script line: 1	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '//SQL Table for Ghost's PvP System
CREATE TABLE IF NOT EXISTS `pvp_rank` (
 `' at line 1

simpy remove the 1st line with the // or CLICK ME pastebin ,

insert that into the SQL table.

  • 4 weeks later...
Posted (edited)

payback's tri

Thanks Emistry ani_no1.gif It's working now..

Oh noticed when I tested killing spree and double kill I think there's a problem with it..

screenrAthena009.jpg

SinX wasn't killed but everytime he gets a Kill the Announcer announces that the one who he killed ended he's Killing Streak(Killing Spree) .

same problems here like ngek202

Got the same problem with NGEK smile.png) how to fix that?

Same problem with Ngek and Hysoka.. Is there an update? Did someone already fixed it? Thanks! :)

I have the same problem with ngek...

This script is very usefull though.

Does anyone have a way to proper fix this?

any help?

Edited by dharmdevil
  • 2 weeks later...
Posted (edited)

i have same problem us uDe has the debug thingy only. but all is working fine

but it put debug in the server is that okaY?

Edited by Kaiz
Posted

if(#Announcer == 0){ announce strcharinfo(0)+" just ended "+rid2name(killedrid)+"'s "+.ESDotA$[@ks - 3]+" "+((.Streak)?"("+@ks+")":"")+"", ((.Broadcast)?bc_all:bc_map), .ESColor$; }
if(#Announcer > 1){ announce strcharinfo(0)+" just ended "+rid2name(killedrid)+"'s "+.ESHoN$[@ks - 3]+" "+((.Streak)?"("+@ks+")":"")+"", ((.Broadcast)?bc_all:bc_map), .ESColor$; }

you just need to switch strcharinfo(0) and rid2name(killerid)

  • 2 weeks later...
Posted (edited)

if(#Announcer == 0){ announce strcharinfo(0)+" just ended "+rid2name(killedrid)+"'s "+.ESDotA$[@ks - 3]+" "+((.Streak)?"("+@ks+")":"")+"", ((.Broadcast)?bc_all:bc_map), .ESColor$; }
if(#Announcer > 1){ announce strcharinfo(0)+" just ended "+rid2name(killedrid)+"'s "+.ESHoN$[@ks - 3]+" "+((.Streak)?"("+@ks+")":"")+"", ((.Broadcast)?bc_all:bc_map), .ESColor$; }

you just need to switch strcharinfo(0) and rid2name(killerid)

very true

the script needs to be fixed ill try doing it

i tried more that 10 streaks but it started back to 3

ill try modifying this :D

ill try to add pimp and seductive hon announcer :D

Edited by icabit
Posted

hi mr ghost

my account was locked [icabit] posted on top of this reply

i cant seem to recover my password

cause the link they gave me in my email doesnt work at all

Anyway

Is it ok for me to modify your script?

i just wanna ask permission

  • 2 weeks later...
Posted (edited)

Ghost's PvP System

An automated multi-announcer + ladder pvp script with configurable features.
  • Feeder detection with stat rollback configuration
  • Switchable announcers (Dota and all HoN announcers)
  • Configurable map setting, pvp ladder, reward setting, penalty setting, broadcast message and color, Payback and Nemesis
  • Kill Death Ratio calculation (Kill/Death, popular in most first person shooting game)

Version: 1.3

Pastebin:

SQL Table:

Required File:

Why is it the player rankings not working?

1. I already install the SQL Table

2. Already tested the script all working fine it records Pvp Statistics but Player rankings was empty.

Oh sorry it's working I just need to Char select to update it up. nice system btw

Edited by zmref
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...