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
Bigger effects
Author Message
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #5
RE: Bigger effects
Ok.

I would limit it to 15 or 20 of those fireballs. Should be enough to display that effect to look nice - damage done effectively is another thing but does not have to be related to how many of those fireballs are around. You just use the range to determine the area of effect ... you might be better off to skip some packages (every second or so) if you have some higher values in local.x.


To optimize this one:
Do all those for-loops without sending those packets. Something like that:


Code:
local.x= <r3,7>
local.packetcount = 0

local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<p.x> W<eval(<p.y>+<local.x>)> B<eval(<p.z>+12)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1

for 0 <eval <local.x> -1>
local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval((<p.x>-1)-<dlocal._for>)> W<eval((<p.y>+<local.x>)-<dlocal._for>)> B<eval(<p.z>+13)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
endfor

local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval(<p.x>-<local.x>)> W<p.y> B<eval(<p.z>+12)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
for 0 <eval <local.x> -1>
local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval((<p.x>-<local.x>)+<dlocal._for>)> W<eval((<p.y>-1)-<dlocal._for>)> B<eval(<p.z>+13)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
endfor

local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<p.x> W<eval(<p.y>-<local.x>)> B<eval(<p.z>+12)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
for 0 <eval <local.x> -1>
local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval((<p.x>+1)+<dlocal._for>)> W<eval((<p.y>-<local.x>)+<dlocal._for>)> B<eval(<p.z>+13)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
endfor

local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval(<p.x>+<local.x>)> W<p.y> B<eval(<p.z>+12)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
for 0 <eval <local.x> -1>
local.packet<local.packetcount> = 0c0 00 D0 D0 W036d4 W<p.x> W<p.y> B<eval(<p.z>+12)> W<eval((<p.x>+<local.x>)-<dlocal._for>)> W<eval((<p.y>+1)+<dlocal._for>)> B<eval(<p.z>+13)> B<dlocal.x> B1 00 00 00 00 D0 D0
local.packetcount += 1
endfor

forclients 18
for 0 <eval <local.packetcount>-1>
sendpacket <local.packet<local._for>>
endfor
endfor

ef_daemon_element_spell_damage <local.x>
Try to count and save all those packets in some locals first. With that you save up time calculating all those coordinates during your sendpacket-statement.

Then send them all at once, rather than looking up your clients all the time.
(This post was last modified: 04-26-2013 05:08 PM by sco.)
04-26-2013 05:06 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Bigger effects - Alaric - 04-25-2013, 04:59 AM
RE: Bigger effects - darksun84 - 04-25-2013, 05:55 AM
RE: Bigger effects - Alaric - 04-26-2013, 03:58 AM
RE: Bigger effects - sco - 04-25-2013, 11:00 PM
RE: Bigger effects - sco - 04-26-2013 05:06 PM
RE: Bigger effects - RanXerox - 04-27-2013, 01:34 AM
RE: Bigger effects - Mordaunt - 04-27-2013, 01:53 AM
RE: Bigger effects - Alaric - 04-27-2013, 02:55 AM
RE: Bigger effects - RanXerox - 04-27-2013, 03:23 AM
RE: Bigger effects - Alaric - 04-27-2013, 04:19 AM
RE: Bigger effects - RanXerox - 04-27-2013, 05:51 AM

Forum Jump:


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