Jump to content
  • 0

Announce in certain Maps


citylala

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  11/30/12
  • Last Seen:  

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/

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Refer to Mapannounce

//announcing in prontera only
mapannounce "prontera", "Broadcasting to prontera only!", 0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  11/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

you forgot to change announce to mapannounce.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

how to reset the ladder then? just delete the pvpladder at my sql database?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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';

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

i get this problem.. lol sorry im new in sql

post-2303-0-31493000-1355541672_thumb.jpg

Link to comment
Share on other sites


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

@donkeyg

are you sure you are using this script ?

http://rathena.org/board/topic/58222-ghosts-scripts-latest-ghosts-pvp-system-v13/

because you dont have this

http://pastebin.com/raw.php?i=dEqrkczy

inside your database..

the above method wont be able to solve the problem you are requesting...

Annie fix the problem based on the script given in the 1st post .....

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

×
×
  • Create New...