Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-08-2004, 03:56 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
gmap + explosions = no work

Anyone know why putexplosion does not work on my gmap?
It works on indoor levels on my server
but not on the map.

I found this eight month old thread where it was still a problem,
http://forums.graalonline.com/forums...explosion+gmap
surely two thirds of a year has been enough time to address it ...

so, what is the fix to make explosions work in an npc on a gmap?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 11-08-2004, 04:11 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Are you using a flat or 3d gmap?
Reply With Quote
  #3  
Old 11-08-2004, 05:00 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
it's a flat map ... why do you ask?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #4  
Old 11-08-2004, 07:22 PM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
It Works! warpto 30 30
then try, the gmap adds levels, it works on the very
top left level, but no others , the x and y
of mouse is no longer the size of the level but the size of the gmap
mousex x-position of the mouse in the "LEVEL
mousey y-position of the mouse in the "LEVEL
as stated in the commands text document in C: \ Graal2001

other commands may fix this, there is a worldx and worldy script
although i havent used them before, not sure how exactly they work:

worldx(x,y)
worldy(x,y)

convert screen positions (e.g. mousescreenx) to level coordinates; you
must specifiy both x and y so that the functions works correctly on Graal2002 terrain


I will get back to you after i have tested it
Reply With Quote
  #5  
Old 11-08-2004, 07:24 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
putexplosion is deprecated. >=p
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #6  
Old 11-08-2004, 08:13 PM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
PHP Code:
//#CLIENTSIDE
if (actionleftmouse || weaponfired) {
putexplosion 1,mousex,mousey;
setplayerprop #c, Exploded #v(mousex) #v(mousy);

Using that you can see, mousex and mousey go by the mousey and mousex of the gmap, not the level, the explosion goes to the number, by level, goign on the gmap, the first level (very top left one) it works fine
walking right until the next level keep firing that weapon, as you see the mousex and mousey of the gmap is working, how ever the explosion loads the mousex and mousey of the level, not the gmap itself

Also, No matter if the gmap was a flat, or GK type gmap it doesnt matter, the Gk like map edits the z quality, it would just make the explosion go slighty ubove or below the actual mouse y
Reply With Quote
  #7  
Old 11-08-2004, 09:14 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
alot of those built in things are not supported by gmaps, and I don't believe there are any plans of adding such support
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #8  
Old 11-09-2004, 01:40 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
so you mean I gotta make a function that does:

call the image that has explosions
changeimgpart to the part of the explosion that I want
play the explosion sound
hurt players/baddies/npcs within the radius

casue thats a lot of stuff to do man ...
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #9  
Old 11-09-2004, 02:42 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
PHP Code:
//#CLIENTSIDE
if (playerenters){
  
putexplosion playerx+playerx%64+somex,playery+playery%64+somey;

That will show the explosion on the leel you are on, just replace somex and somey with your x and y coordinates.
Reply With Quote
  #10  
Old 11-09-2004, 03:17 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Best is to use putnpc2 and to display a gani (setcharani), there should be several explosion ganis around
Reply With Quote
  #11  
Old 11-09-2004, 03:40 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Thank you for the gani tip, Stefan,
but taking ganis and graphics from other servers is
ususally discouraged.

Is there some public gani repository that I can
get a gani explosion from? if so, where is it?

And this still leaves me with a complicated script because
what I want to do is increase the radius of the explosion
as it moves away from the player,
so 4 or 5 ganis would be needed ...

putexplosion works fine offline ... and online if not on the map ...

I guess I can use the old setmap and setminimap commands
for my world, instead of a gmap,
if thats what it takes to make my npcs work?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #12  
Old 11-17-2004, 01:24 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
These are simple ganis for bomb and explosions. If you want to have explosions of different size then you can probably do a little gani script.
Attached Files
File Type: gani g2k1bomb.gani (1.5 KB, 139 views)
File Type: gani g2k1bombexplo.gani (3.8 KB, 129 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.