Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GMAP Problem (https://forums.graalonline.com/forums/showthread.php?t=64000)

ArushenP2P 02-09-2006 07:56 AM

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

xXziroXx 02-09-2006 11:36 AM

Im guessing that you have a badly scripted system or it probably wouldnt happen.

ArushenP2P 02-09-2006 11:41 AM

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


napo_p2p 02-09-2006 11:54 AM

Check to see if the weapon is unequiping when you go from one inside level to another.

ApothiX 02-09-2006 01:31 PM

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.

Admins 02-09-2006 02:56 PM

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.

ArushenP2P 02-10-2006 09:12 AM

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

ApothiX 02-10-2006 03:17 PM

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?

ArushenP2P 02-11-2006 05:43 AM

yea it might be the equip code, its simple really on the weapons it has replaceani and stuff

ApothiX 02-11-2006 05:43 PM

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?

ArushenP2P 02-12-2006 12:51 AM

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;
}


Warcaptain 02-12-2006 02:40 AM

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.


All times are GMT +2. The time now is 08:01 AM.

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