Zero Human 0 Posted April 6, 2019 Hey there, Is there a way to attach players in hercules? (I know addrid(0) is only in rathena available) I need this for some scripts like this here: OnBossSpawn: announce "Worldboss Ogre King spawned.",bc_all; soundeffectall ("se_earth_quake.wav",0); Quote Share this post Link to post Share on other sites
0 KirieZ 88 Posted April 6, 2019 attachrid command allows you to attach to one player, and if you want to attach to all players in the server, I believe you can use getunits to retrieve their GIDs and then loop through this array attaching each player Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted April 9, 2019 What KirieZ said is right, but you should also keep in mind attachrid is not necessary as at one time, 1 player can only have 1 attached script, instead some modification to command would be more effective in terms of performance and reliability Quote Share this post Link to post Share on other sites
0 Zero Human 0 Posted April 9, 2019 Thanks for the answers. It should come when a World Boss spawn, a server message with Sound (for all players) The script starts with a timer and not by a player. Would you have a solution? Quote Share this post Link to post Share on other sites
0 KirieZ 88 Posted April 10, 2019 There is soundeffectall (if you want to use wav folder) but I think it doesn't allow you to send to all players in server. Maybe you will need a small source change to use it. There is also playbgmall, that according to docs allows you to send to the entire server, but from BGM folder. Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted April 11, 2019 prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ detachrid; .@total = getunits( BL_PC, .@aid, false ); for ( .@i = 0; .@i < .@total; ++.@i ) { attachrid .@aid[.@i]; soundeffect "ownage.wav", 0; } end; } 1 Zero Human reacted to this Quote Share this post Link to post Share on other sites
0 Zero Human 0 Posted April 11, 2019 @AnnieRuru, thank you very much. You saved my life. Works perfect, even with buffs. Quote Share this post Link to post Share on other sites
Hey there,
Is there a way to attach players in hercules? (I know addrid(0) is only in rathena available)
I need this for some scripts like this here:
OnBossSpawn: announce "Worldboss Ogre King spawned.",bc_all; soundeffectall ("se_earth_quake.wav",0);
Share this post
Link to post
Share on other sites