Jump to content

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


Ghost

Recommended Posts


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

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)
Quote

Russian Roulette

A GM activated russian roulette mini-game script.
Quote

[ Edit: Skorm ] Because this is such a popular script I updated it and fixed a few things in the process. Link to v1.4 https://pastebin.com/pX5nFgdp

Edited by Skorm
Updated Links
  • Upvote 6
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@Ghost Sir can i ask what are the Features of the PVP System script?

Link to comment
Share on other sites


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

@Ghost Sir can i ask what are the Features of the PVP System script?

  • Feeder detection with stat rollback configuration
  • Switchable 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)

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


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

post-379-0-31667200-1328279186_thumb.png

Check also your 'Wav' files. i think there is an 'VIRUS' i can't DOWNLOAD and it also blockeds the URL.

Regards,
Vlync

Edited by VLYNC
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

the WAV Files has been Checked and there are not Virus Found..

Software Used are

AVG IS 2011/ IS BE 2012,

Norton 360 and

McAfee AP 2012

Link to comment
Share on other sites


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

post-379-0-31667200-1328279186_thumb.png

Check also your 'Wav' files. i think there is an 'VIRUS' i can't DOWNLOAD and it also blockeds the URL.

Regards,

Mindless

Fixed, just removed "break;". No virus man, check your dns restrictions.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

how do you set Announcement if DoTa or HoN?

Link to comment
Share on other sites


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

how do you set Announcement if DoTa or HoN?

Go to line 285 and change morocc,162,107,3 to your preferences.

Talk to npc to switch between announcers.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  02/06/12
  • Last Seen:  

Can't help but post here. :(

Saw the Ghost PvP system, pretty neat especially when it isn't always "Dota" ( my own personal opinion since i got used to servers only having the dota announcement everytime you killed someone ). You can make fun of the announcements too! Going to upload it soon on my server tho.

'Bout the Run for your life, yeah it's almost similar to the "Novice vs Zombies" event but Ghost integrated the all job and novice RFYL as an automated and GM activated event which is very helpful indeed. The mob isnt "all zombies" but the novice rfyl is. Can set the preferred monsters for the All Job RFYL.

Basically, thanks babe for the script i know you really worked hard for it. Keep up the good work! Will be testing your script on my server in a while then i'll keep you posted.

With much love :)

Edited by aRiley
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  241
  • Reputation:   46
  • Joined:  11/08/11
  • Last Seen:  

looks really good :(

10/10

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

To add PvP maps, don't you remove "ALL" and replace with "map_name","map_name","map_name","map_name"; for multiple maps?

Link to comment
Share on other sites


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

To add PvP maps, don't you remove "ALL" and replace with "map_name","map_name","map_name","map_name"; for multiple maps?

Yes.

e.g.

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Why i got [Error]: in my map-server-sql.exe?

[Debug]: 2000000 110028840 : Error in KDR Function, getarg(1) invalid value

Regards,

Mindless

Link to comment
Share on other sites


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

Why i got [Error]: in my map-server-sql.exe?

[Debug]: 2000000 110028840 : Error in KDR Function, getarg(1) invalid value

Regards,

Mindless

That's no problem. It's just a notification, it tells you that the value of getarg(1) (Death) is 0. Where any number divided by 0 is undefined. So no calculations can be made but return 0 instead.

Edited by Ghost
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

how to solve this sql error

2m2yg5j.jpg

fixed!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

there is little wrong here in the flamboyant anncounce here written ms pudding smile.png

case 4: //Flamboyant
if(#Announcer == 3){ goto L_Announce; }
if((.AnnouncerFee) && (!#Flamboyant)){
next; mes "[Loki]"; mes "Do you want to purchase Flamboyant announcer for "+.AnnouncerFee+" Kill Point?";
switch(select("No:Yes")){
case 1: close;
case 2:
if(#CASHPOINTS < .AnnouncerFee){ next; mes "[Loki]"; mes "You don't have enough Kill Point."; close; }
set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee;
set #Flamboyant, 1;
}
}
soundeffect "3_KS1.wav", 0;
set #Announcer, 3;
announce "[Loki] Ms. Pudding announcer has been configured to your account.",bc_self,0xFF0000;
close;
Edited by Patskie
Change to code
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

yup i have same problem as ngek 202 >.< problem when setting list of maps Announce doesn't work.

problems solved

thanks^^

Edited by hysoka44
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Nice scripts ghost.. :)

But I have a question regarding the pvp script of yours?..

I have use this in all maps...

But is it possible to disable it from certain maps?.. Like 3-5 maps?... Thanks.. /?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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)

Nice scripts ghost.. :)

But I have a question regarding the pvp script of yours?..

I have use this in all maps...

But is it possible to disable it from certain maps?.. Like 3-5 maps?... Thanks.. /?

Already tried it but the announcer doesn't work anymore, I've already told Ghost about this on Irc and he said he'll fix it..

Link to comment
Share on other sites


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

Script Updated: (Not yet tested at the moment)

//Changelog:

//v1.3 = Fixed .PvPMap$[0] settings [Ghost]

// = Added .GMLevel at configuration [Ghost]

// = Change SK Hex Color to ^00FF00 for visibility [Ghost]

// = Fixed Streak Kill ended broadcast [Ghost]

// = Typographical error (Ms. Pudding to Flamboyant) on Announcer Setting corrected [Ghost]

// = Changed Top 10 Players ranking from KDR to Kills [Ghost]

Edited by Ghost
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@Ghost tested it with:

setarray .PvPMap$[0], "guild_vs3","guild_vs1","pvp_y_8-2","1@orcs";

but still Announce didn't work /hmm tested with normal accounts (Non GM).

but if

setarray .PvPMap$[0], "All";

works..

// = Added .GMLevel at configuration [Ghost]

this is for Announcer too right? they will get ignored if they are GM's

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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 ^^ /hmm


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.............
}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Thanks Emistry /hmm 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) .

Edited by ngek202
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

same problems here like ngek202

Link to comment
Share on other sites

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.

×
×
  • Create New...