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-nmm6 (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-nmm6 (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-nmm6 (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: #1
Unique fight music in different regions?
Im working on bringing my shard back up and I am wondering if on 56b you can set unique war music for each region?

My old script from an older sphere version doesnt work anymore when used on 56b:
Code:
ON=@ENTER
        IF (0<SRC.FLAGS>=<SRC.FLAGS>|statf_war)
        SRC.MUSIC=38
        ELSE
    SRC.music=20
ENDIF
ON=@CLIPERIODIC
        IF (0<SRC.FLAGS>=<SRC.FLAGS>|statf_war)
        SRC.MUSIC=38
        ELSE
    SRC.music=20
ENDIF

With my shard being a Final Fantasy style shard and having many dungeons and boss rooms, It really takes away from the immersion when your about to fight a boss and the music suddenly changes from the boss music to the default war music #.

Thanks in advance.
(This post was last modified: 06-02-2013 08:07 PM by Adohleas.)
06-02-2013 08:01 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Unique fight music in different regions?
In an IF statement, you can think of the & symbol as the word "includes"... so

IF (<SRC.FLAGS> & statf_war)

...is probably what you are looking for.
06-03-2013 04:08 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Unique fight music in different regions?
*Hastily deletes his early morning pre-coffee post*
lol

[Image: 2nis46r.jpg]
06-03-2013 04:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
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 


Forum Jump:


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