Graal Forums  

Go Back   Graal Forums > PlayerWorlds > PlayerWorlds Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-08-2006, 05:17 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Gmaps, bombs, and arrows

Ever since we got a gmap on our server, the bombs and arrows havn't worked.
What could this be caused by, since other servers don't seem to have these problems. (Also, baddies won't appear)
Reply With Quote
  #2  
Old 06-08-2006, 09:40 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Baddies won't work on gmaps.

Defualt bombs and arrows won't work on gmaps (although, it is really easy to script your own).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 06-08-2006, 11:06 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by napo_p2p
Baddies won't work on gmaps.

Defualt bombs and arrows won't work on gmaps (although, it is really easy to script your own).
So, would I be able to use put NPC and classes?
Reply With Quote
  #4  
Old 06-08-2006, 11:20 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Quote:
Originally Posted by excaliber7388
So, would I be able to use put NPC and classes?
yes. that is the general idea.
Reply With Quote
  #5  
Old 06-08-2006, 11:33 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by konidias
yes. that is the general idea.
Does anyone have an example of a bomb script? I'm not sure what NPC is messed up, but I think it's my bomb class:
Class:
PHP Code:

function onCreated()
{
  
showimg(10,"bomb.png",x,y);
  
setshape(1,32,32);
  
settimer(3);
}
function 
onTimeout()
{
  
putexplosion(x,y,1,3);

And the script calling this class:
PHP Code:
function onActionserverside()
{
  
join("bomb");
  
putnpc2(playerx,playery,{join("bomb")});
}
//#CLIENTSIDE
function onWeaponfired()
{
  
triggeraction(0,0,"serverside","Bomb test","bomb");


Last edited by excaliber7388; 06-08-2006 at 11:54 PM..
Reply With Quote
  #6  
Old 06-09-2006, 05:51 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
putexplosion dosent work on gmaps either - not in my experience of trying on it on two diferent servers.

These are they types of things that should come along with your server for free when you buy it - ready to use npcs in the database for bomb and bow that work on gmaps. I mean, for years before npc servers, these worked without us doing any extra work. but now every single classic-type server has to go and waste their time re-making the exact same effect.

just include it with the new servers.

they way i tried it before was to do putnpc (or putnpc2) with an explosion gani and triggeraction on the places where the gani would show - to duplicate the classic effect of the bomb, just gotta time the triggeraction to damage the hp right and experiment a bit to account for serverside damage and the appearing of the gani on screen
Reply With Quote
  #7  
Old 06-10-2006, 10:27 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by Prozac
putexplosion dosent work on gmaps either - not in my experience of trying on it on two diferent servers.

These are they types of things that should come along with your server for free when you buy it - ready to use npcs in the database for bomb and bow that work on gmaps. I mean, for years before npc servers, these worked without us doing any extra work. but now every single classic-type server has to go and waste their time re-making the exact same effect.

just include it with the new servers.

they way i tried it before was to do putnpc (or putnpc2) with an explosion gani and triggeraction on the places where the gani would show - to duplicate the classic effect of the bomb, just gotta time the triggeraction to damage the hp right and experiment a bit to account for serverside damage and the appearing of the gani on screen
Thanks, it would be nice if those scripts were available, but I guess this will do Thanks
Reply With Quote
  #8  
Old 06-13-2006, 11:01 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  if (
player.bombs 0) {
    
setani("vi-bombdrop"" ");
    
freezeplayer(0.5);
    
sleep(0.5);
    if (
isOnMap) {
      
temp.px player.- (64 getMapX(player.level)) + 0.5 vecx(player.dir)*2;
      
temp.py player.- (64 getMapY(player.level)) + 0.5 vecy(player.dir)*2;
      
putBomb(1temp.pxtemp.py);
    }
    else {
      
putBomb(1,player.vecx(player.dir)*2player.0.5 vecy(playerdir)*2);
    }
    
player.bombs --;
  }

That works on a gmap (need to change gani though).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #9  
Old 06-13-2006, 11:27 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by napo_p2p

That works on a gmap (need to change gani though).
<3 Thanks!
The bow works like this, but the arrow loops through the level (like asteroids)

And how could I encorporate this into it's class, without using player.x/y (classes can't detect that?)

Last edited by excaliber7388; 06-13-2006 at 11:38 PM..
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 05:31 PM.


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