The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unique fight music in different regions?
Author Message
Adohleas
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #4
RE: Unique fight music in different regions?
Created a work around since the above wasnt working due to the combat music taking over as long as your in war mode.
Code:
[events e_dattack]
ON=@UserWarmode
SRC.NEWITEM=i_attacking_t
SRC.ACT.ATTR=attr_decay
SRC.ACT.TIMER 15
SRC.ACT.P=<SRC.P>
UID.<SRC.ACT.UID>.USE
SRC.UPDATE
RETURN 1

ON=@Attack
sendpacket 072 d00
IF (<ISPLAYER>)
dattack_check
ENDIF

ON=@CharAttack
IF (<ISPLAYER>)
dattack_check
ENDIF

[Function dattack_check]
IF !(<FINDID.i_memory_dattack>)
newitem i_memory_dattack
ACT.P=<P>
act.equip=<UID>
ACT.TIMER 15
ELSE
FINDID.i_memory_dattack.timer 15
ENDIF

[ITEMDEF i_memory_dattack]
NAME=attack memory
ID=i_memory
TYPE=t_eq_script

ON=@Create
TIMER=15

ON=@Timer
IF (<CONT.FLAGS> & statf_war)
CONT.FLAGS = <CONT.FLAGS> &~statf_war
REMOVE
ENDIF
RETURN 1

[ITEMDEF i_attacking_t]
NAME="Attack"
ID=i_memory
TYPE=t_eq_script

ON=@Dclick
TARGET Select a target to attack.
RETURN 1

ON=@Targon_Item
TARGET
RETURN 1

ON=@Targon_Char
SRC.ATTACK <SRC.TARG.UID>
REMOVE
RETURN 1

This isnt perfect, you wont be able to see your character in war mode(you will see yourself and the enemies attacking) and you will instead be forced to target who you wish to attack, but this prevents war mode which seems to ignore any music change through either the music command or sendpacket 06D.
(This post was last modified: 06-05-2013 09:59 PM by Adohleas.)
06-05-2013 04:52 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Unique fight music in different regions? - Adohleas - 06-05-2013 04:52 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)