Jump to content
  • 0

Announce in certain Maps


Question

Posted

hello everyone. im using Ghost's Pvp ladder scripts.. may i know how do i make it just announce at izlude and PVP Maps only when someone killed?

//--Configuration
set .System, 1; //Toggle PvP System (0:Disable|1:Enable)
set .ServerType, 1; //Are you using TXT or SQL? (0:TXT|1:SQL)
set .GMLevel, 90; //GM levels above or equal this level will be ignored by the system
setarray .PvPMap$[0], "All"; //List all pvp maps here (Index 0:"All" to enable all maps)

//PvP Ladder
set .Top, 10; //What is the length of the list?
set .Reset, 2; //Allow players to reset their PvP statistics? (0:Disable|1:Zeny|2:Cashpoint|3:Skull)
set .ZenyFee, 0; //How much zeny you want to charge to reset their pvp stat?
set .CashFee, 1000; //How much cashpoint you want to charge to reset their pvp stat?
set .SkullFee, 1000; //How much skull you want to charge to reset their pvp stat?
set .AnnouncerFee, 2000; //How much cashpoint per announcer? (DotA announcer is set as default)

//Reward Setting (Every Kill)
set .MaxZeny, 1000000000; //What is the max zeny of the server?
set .Zeny, 0; //Earn zeny each kill? (0:Disable)
set .Cash, 0; //How much #CASHPOINT every kill? (0:Disable)
set .Skull, 1; //Collect player's skull each kill? (0:Disable|1:Enable)
setarray .ItemID[0], 0; //Get items each kill? (0:Disable)
setarray .Amount[0], 0; //How many items per kill?

http://rathena.org/board/topic/58222-ghosts-scripts/

10 answers to this question

Recommended Posts

Posted

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

list izlude, and all your pvp maps here

and 2nd, change

announce 

into

mapannounce strcharinfo(3), 

Posted (edited)

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

to

setarray .PvPMap$[0],"izlude";//List all pvp maps here (Index 0:"All" to enable all maps)
like this?

and then

else { announce strcharinfo(0)+" pwned "+rid2name(killedrid)+"'s head", ((.Broadcast)?bc_all:bc_map), .KColor$; }

to

else { announce strcharinfo(3)+" pwned "+rid2name(killedrid)+"'s head", ((.Broadcast)?bc_all:bc_map), .KColor$; }

??

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

1 more questions.. how do i reset the pvp ladders lol=.= why it doesn display Death(S)?

post-11968-0-80335300-1355287254_thumb.jpg

Edited by citylala
Posted

ok sry, I was wrong ( got tricked by Ryokem post )

I redo again

1.

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

for example, if your server has 6 pvp maps

izlude, guild_vs1, guild_vs2, guild_vs3, guild_vs4, guild_vs5

then do like this

setarray .PvPMap$[0],"izlude", "guild_vs1", "guild_vs2", "guild_vs3", "guild_vs4", "guild_vs5";

2.

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

set this to 1

you can forget about mapannounce, because its already in the setting ( I failed to noticed it earlier )

3.

yes you are right, that death not going up due to this bug

change this

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

into this

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

}
}
set Death, Death + 1;
} end;

Posted (edited)

else { announce strcharinfo(0)+" pwned "+rid2name(killedrid)+"'s head", ((.Broadcast)?bc_all:bc_map), .KColor$; }

This should work, why replacing it? bc_map already sent the broadcast to the map the atteched character is...

EDIT:

ok sry, I was wrong ( got tricked by Ryokem post )

2.

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

set this to 1

you can forget about mapannounce, because its already in the setting ( I failed to noticed it earlier )

How I could know he had this sort of script lol? he asked for how to announcing in 1 map only :P

Edited by Ryokem
Posted

shut down your server and apply this SQL script

truncate table pvp_rank;

delete from global_reg_value where
str = 'Kill' or
str = 'Death' or
str = 'KillingStreak' or
str = 'MultiKill' or
str = 'NemesisKill' or
str = 'FeedCount' or
str = 'KillingSpree' or
str = 'Dominating' or
str = 'MegaKill' or
str = 'Unstoppable' or
str = 'WickedSick' or
str = 'MonsterKill' or
str = 'Godlike' or
str = 'BeyondGodlike' or
str = 'DoubleKill' or
str = 'TripleKill' or
str = 'UltraKill' or
str = 'Rampage' or
str = 'Ownage';

Join the conversation

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

Guest
Answer this question...

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