From ff0af0b4437fb987bc0cf2c0091942a266b8731e Mon Sep 17 00:00:00 2001 From: zephyrus Date: Sun, 29 Mar 2009 16:49:52 +0000 Subject: - Implementing official battleground "emblem" crossed swords icon. - Removing the custom guild packets from Battleground as they are not needed anymore. - Scripts updated. - In this way, you get "battle cursor" over your same team, but that's how official does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13635 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 8e2d54f3b..174bad12b 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13372,7 +13372,7 @@ BUILDIN_FUNC(waitingroom2bg) struct npc_data *nd; struct chat_data *cd; const char *map_name, *ev = "", *dev = ""; - int x, y, i, mapindex = 0, guild_index, bg_id, n; + int x, y, i, mapindex = 0, bg_id, n; struct map_session_data *sd; if( script_hasdata(st,8) ) @@ -13399,12 +13399,10 @@ BUILDIN_FUNC(waitingroom2bg) x = script_getnum(st,3); y = script_getnum(st,4); - guild_index = script_getnum(st,5); - ev = script_getstr(st,6); // Logout Event - dev = script_getstr(st,7); // Die Event + ev = script_getstr(st,5); // Logout Event + dev = script_getstr(st,6); // Die Event - guild_index = cap_value(guild_index, 0, 1); - if( (bg_id = bg_create(mapindex, x, y, guild_index, ev, dev)) == 0 ) + if( (bg_id = bg_create(mapindex, x, y, ev, dev)) == 0 ) { // Creation failed script_pushint(st,0); return 0; -- cgit v1.2.3-60-g2f50