Graphic effects: sendfx, staticfx, boltfx, Horian
.: Publication date 29-June-2004 :: Reads: 1409 :: Review :: Print current page :: Print all:.

Akron:
"Ok now send_movingfx and send_staticfx can be called also with item params
Note: send_movingfx require AT LEAST one char params, so can be used a combination of

char char
char item
item char

but NOT item item.
The direction is from the first to the second. "

This means that the FX-effects (so far not with bolt = lightning) now not only work between two chars but between a char and an itm and opposite.
send_movingfx example: You want to move something from char one to char two:
send_movingfx(chr,target,0xDCA,5,0,0);

target is a second char. 0xDCA is the fishing net. Now this item appears ingame at char one and moves with speed 5 one time (first 0 means it is no loop) to the target and thats it (second 0 means it does not explode there).
This example is taken from fidors throwing web script
http://www.gernox.de/thread.php?threadid=10&boardid=17
Of course you can now use this to script football or whatever you want that should move an item from a to b or from char to item or item to char. You can use this for traps too (moving the trap to the char) or special attacks. An other example for send_movingfx concerning scripting new spells you can find here: http://www.gernox.de/action.php?action=getlastmain&boardid=17

send_staticfx is used basing at my knowledge to have effects from one char/item to another char/item, usefull for spells.

send_boltfx is used to throw a lightning from char a to char b, only the graphic effect but no other impact as far as I know. Works ONLY between chars.


 
 
MD-Pro is Free Software released under the licenza GNU/GPL.
 
 

Powered by MD-Pro