Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2006, 04:00 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PutBomb on Gmap issue???

I made a custom bomb becuase The Owner wanted one but I got it to work but it doesnt work on the gmap. Heres the script
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
if (
player.bombs 0) {
  
player.bombs player.bombs 1;
if (
player.dir==0) {
putbomb(1,player.x+0.5,player.y-0.5);
}
else if (
player.dir==1) {
putbomb(1,player.x-1,player.y+0.8);
}
else if (
player.dir==2) {
putbomb(1,player.x+0.5,player.y+1.5);
}
else if (
player.dir==3) {
putbomb(1,player.x+2,player.y+0.8);
}
}

Is this another one of those gmap bugs? Anyway to fix it?
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 07-29-2006, 04:59 AM
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
I would use vecx and vecy for putting bombs, less scrip and easier.
As for the gmap bug, yeah it sucks. I forget what I used, but it lags too much. I'll post it later, but it won't help you too much. You will be able to place bombs, yes, but it takes a second x_X
Reply With Quote
  #3  
Old 07-29-2006, 08:49 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
You just realized bombs dont work on gmaps now? O_o
Reply With Quote
  #4  
Old 07-29-2006, 09:29 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Rapidwolve
You just realized bombs dont work on gmaps now? O_o
Graals (chest) bombs work fine on gmap but myt customs bombs do not.
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 07-29-2006, 10:11 AM
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("lay""");
    
freezeplayer(0.2);
    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(player.dir)*2);
    }
    
player.bombs --;
  }

__________________
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
  #6  
Old 07-29-2006, 09:18 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Thanks Napo ^o^
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 07-30-2006, 07:24 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
ew normal bombs

make graphic explosions and a custom hp system
*nods*
__________________
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 02:52 PM.


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