Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Troubles with Default Weapons (https://forums.graalonline.com/forums/showthread.php?t=82606)

Benwick 11-01-2008 04:13 PM

Troubles with Default Weapons
 
So, i'm fairly new here, still fiddling with GScript and learning it, mostly through small scripts at the moment.

Right now on my dev server I just want to try things out using the default sword, arrow, bombs etc.

My troubles are with NPCs/Baddies. Obviously the generic baddies from the Editor are deprecated and useless, so I've managed to work around that and create my own (very simple) baddy for random mobs, while I use Gambet's GBaddy (This thing kick's my arse...over...and over...even after i've tweaked him lol) for a boss.

My problem is that using the default weapons, sword mostly (Gbaddy cannot be harmed by anything else right now). I do not hurt them at all, any NPCs I have, my sword goes right through them and does not injure them. I thought Perhaps it was something with the Function OnWasH.it (Minus the .) - I used the default code from GBaddy for this function but it still didn't let me hit him, I even tweaked the line if (this.health[0]-(player.swordpower/2) > 0) to read if (this.health[0) > 0) so it should force the NPC to get hurt without doing any sword checks. But I still do not damage to an NPC.

Perhaps it's something with the default weapons as I have no weapons scripted? Any advice would be great :) Thanks


All times are GMT +2. The time now is 04:19 PM.

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