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
Sendpacket question
Author Message
Jonaleth
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Sendpacket question
I am not sure if this is the place to ask this question, but...

I am working with some custom spells and trying to create good looking effects. When it comes to effect such as meteor shower or other effects involving objects falling from above.

This is a script I found that made me very interested in how it works;

Code:
[EVENTS e_hellcaller]
ON=@HITTRY
SRC.damage <EVAL {5 8}>,0001,<UID>,Fire
SRC.column_fire {colors_green 1 colors_red 1 colors_yellow 1 colors_black 1}
RETURN 1

[FUNCTION column_fire]
VAR.Y1=<EVAL <P.Y>+-8>
VAR.X1=<EVAL <P.X>+-8>
VAR.Z1=<EVAL <P.Z>+40>
var.column_args=i_fx_fireball,<ARGV[0]>,020,0,0,0,0
CASTER_Column_effect 1,-1,-1,10
CASTER_Column_effect 1,-1,1,10
CASTER_Column_effect 1,-1,0,10
CASTER_Column_effect 2,-1,-1,10
CASTER_Column_effect 2,-1,1,10
CASTER_Column_effect 2,-1,0,10
CASTER_Column_effect 3,-1,-1,10
CASTER_Column_effect 3,-1,1,10
CASTER_Column_effect 3,-1,0,10
CASTER_Column_effect 4,0,0,10
CASTER_Column_effect 4,0,1,10
CASTER_Column_effect 4,0,-1,10
CASTER_Column_effect 5,0,0,10
CASTER_Column_effect 5,0,1,10
CASTER_Column_effect 5,0,-1,10
CASTER_Column_effect 6,0,0,10
CASTER_Column_effect 6,0,1,10
CASTER_Column_effect 6,0,-1,10
CASTER_Column_effect 7,1,0,10
CASTER_Column_effect 7,1,-1,10
CASTER_Column_effect 7,1,1,10
CASTER_Column_effect 8,1,0,10
CASTER_Column_effect 8,1,-1,10
CASTER_Column_effect 8,1,1,10
CASTER_Column_effect 9,1,0,10
CASTER_Column_effect 9,1,-1,10
CASTER_Column_effect 9,1,1,10
VAR.Y1=<EVAL <P.Y>>
VAR.X1=<EVAL <P.X>>
VAR.Z1=<EVAL <P.Z>+4>
var.column_args=i_fire,<ARGV[0]>,020,0,0,0,0
CASTER_Column_effect 1,-3,-3,10
CASTER_Column_effect 1,-3,-1,10
CASTER_Column_effect 1,2,-3,10
CASTER_Column_effect 1,2,-1,10
CASTER_Column_effect 1,-1,1,10
CASTER_Column_effect 1,-1,0,10
CASTER_Column_effect 1,1,0,10
CASTER_Column_effect 1,1,1,10
CASTER_Column_effect 1,0,3,10
CASTER_Column_effect 1,0,-2,10
CASTER_Column_effect 1,-2,1,10
CASTER_Column_effect 1,-2,-1,10
CASTER_Column_effect 1,3,-2,10
CASTER_Column_effect 1,3,0,10
var.column_args=
VAR.Y1=
VAR.X1=
VAR.Z1=

[FUNCTION CASTER_Column_effect]
Column_Effect <var.column_args>,<ARGV[0]>,<EVAL <P.Y>+<ARGV[1]>>,<EVAL <P.X>+<ARGV[2]>>,<EVAL <P.Z>+<ARGV[3]>>

[FUNCTION Column_Effect]
forclients 8
sendpacket 0c0 00 D<argv[5]> D<argv[3]> W<argv[0]> W<EVAL <VAR.X1>> W<eval <VAR.Y1>> B<EVAL <VAR.Z1>> W<EVAL <ARGV[9]>> W<EVAL <ARGV[8]>> B<EVAL <ARGV[10]>> B<argv[7]> B<argv[2]> 00 00 00 B<qval 0<argv[6]>?<argv[6]>:0> D<hval <argv[1]> - 1> D<argv[4]>
endfor

I've found some effects by sendpacket which looks very nice, and would like to learn how to work with it. But I can't figure it out. Is there somewhere you (I) can read and learn or someone who can explain how the sendpacket works?
08-11-2014 09:45 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Sendpacket question
08-11-2014 10:04 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)