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 02-09-2006, 07:56 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
GMAP Problem

In this server i work for, we have this problem were you equip something and when you step to the nextlevel of the gmap, it unequips

Is it a gmap script error? or something
Reply With Quote
  #2  
Old 02-09-2006, 11:36 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Im guessing that you have a badly scripted system or it probably wouldnt happen.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 02-09-2006, 11:41 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
Here is how the format script of the gmap in a notepad, converted to a .gmap on rc

NPC Code:

GRMAP001
WIDTH #
HEIGHT #
LEVELNAMES
"Level names here w/ quote"
LEVELNAMESEND

__________________


Your abilities to create wonder relies on your level of imagination.

Reply With Quote
  #4  
Old 02-09-2006, 11:54 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
Check to see if the weapon is unequiping when you go from one inside level to another.
__________________
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
  #5  
Old 02-09-2006, 01:31 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by ArushenP2P
Here is how the format script of the gmap in a notepad, converted to a .gmap on rc
There is no conversion being taken place, gmaps are nothing but text files.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #6  
Old 02-09-2006, 02:56 PM
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
Quote:
Originally Posted by ArushenP2P
In this server i work for, we have this problem were you equip something and when you step to the nextlevel of the gmap, it unequips

Is it a gmap script error? or something
Please say which server and location (level) where it happens.
Reply With Quote
  #7  
Old 02-10-2006, 09:12 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
Anzell (all the gmaps) , we just need it so what ever you (weaponsfire) it still fired, and not unequiped when your on next level of gmap
__________________


Your abilities to create wonder relies on your level of imagination.

Reply With Quote
  #8  
Old 02-10-2006, 03:17 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by ArushenP2P
Anzell (all the gmaps) , we just need it so what ever you (weaponsfire) it still fired, and not unequiped when your on next level of gmap
It's probably an error with your script <_< Show us an example of your equip code?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 02-11-2006, 05:43 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
yea it might be the equip code, its simple really on the weapons it has replaceani and stuff
__________________


Your abilities to create wonder relies on your level of imagination.

Reply With Quote
  #10  
Old 02-11-2006, 05:43 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by ArushenP2P
yea it might be the equip code, its simple really on the weapons it has replaceani and stuff
show. us. some. code. Please?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #11  
Old 02-12-2006, 12:51 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
NPC Code:

if (actionserverside) {
if (strequals(#p(0),drop)) {
setani kneel1,;
putnpc2 playerx+.5+vecx(playerdir)*1.5,playery+1.25+vecy(p layerdir)*1.5,{setimg anzell-blank-icon.png;if (playertouchsme) { setani lift,;freezeplayer 1;addweapon Weapons/One Handed Rapier;destroy;}};
}
}
//#CLIENTSIDE
if (created) {
this.rapier = 0;
}
if (weaponfired && this.rapier == 0) {
// Unsheathed stuff below
setani anzell_weapon-arurapier-idle,;
replaceani idle,anzell_weapon-arurapier-idle;
replaceani walk,anzell_weapon-arurapier-walk;
replaceani sit,sit;
replaceani swim,swim;
replaceani sleep,sleep;
replaceani sword,anzell_weapon-arurapier-stab;
replaceani push,push;
replaceani pull,pull;
replaceani lift,lift;
replaceani hurt,hurt;
replaceani grab,grab;
this.rapier = 1;
sleep 0.05;
}
if (keypressed&&keydown2(keycode(a),true) && this.rapier == 1) {
setani idle,;
replaceani idle,idle;
replaceani walk,walk;
replaceani sit,sit;
replaceani swim,swim;
replaceani sleep,sleep;
replaceani sword,anzell_punch;
replaceani push,push;
replaceani pull,pull;
replaceani lift,lift;
replaceani hurt,hurt;
replaceani grab,grab;
this.rapier = 0;
sleep 0.05;
}

__________________


Your abilities to create wonder relies on your level of imagination.

Reply With Quote
  #12  
Old 02-12-2006, 02:40 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
are you using default weapon system?

check to see if you have any onPlayerEnters that sets the weapon.. if you are using a custom weapon system check it out too.
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:30 AM.


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