Thread: Triggeraction
View Single Post
  #12  
Old 02-19-2002, 03:42 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Stefan
You can do it with showimgs, or with gani scripts.
Showimg will be laggy when displaying many
lights on many players, but will work everywhere.
You just have to do showimg index,image,x,y;
with index between 1 and 199.

Gani scripts are not laggy, but you will need
to make special ganis that hold the script
like lightswalk.gani, lightsidle.gani, and then
call replaceani idle,lightsidle; and replaceani
walk,lightswalk;
Inside the ganis add a script like this:

SCRIPT
if (playerenters || timeout) {
showimg 200,light2.png,playerx-2,playery-2;
changeimgcolors 200,1,1,1,0.99;
changeimgvis 200,3;
timeout = 0.05;
}
SCRIPTEND

Such ganiss are currently only allowed on servers with
npcserver (p2p servers).
This should probably be in the new ideas forum, but why not add Gani scripting to the Grall Shop program rather than manually editing it
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote