Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help with deleting a weapon (https://forums.graalonline.com/forums/showthread.php?t=34113)

Magic_Kitty 07-24-2002 02:11 AM

Help with deleting a weapon
 
Well if you start Graal Classic for example, you start with a normal bow and bomb.
but how would it be possible to make sure you DONT have them when you start? because im making a server, but you need to buy them or qeust for the NPC. How would i do this?

screen_name 07-24-2002 02:27 AM

GrowlZ:

I don't think you do start out with these NPCs by default. In Graal Classic, the bow and bomb are kind of system NPCs; they are NOT the default bow and bomb, they're a sort of inventory system that lets you have more than one type of bomb in one weapon. And as such, you've gotta have them at all times or you can't get upgrades. The normal method is that a server has two chests at the start containing the two weapons. They're not added automatically. As far as I know.

screen_name 07-24-2002 02:29 AM

lol

NPC Code:

if (playerenters) {
toweapons Bomb;
toweapons Bow;
if (isweapon) {
destroy;
}
}


screen_name 07-24-2002 02:35 AM

Quote:

Originally posted by screen_name
lol

NPC Code:

if (playerenters) {
toweapons Bomb;
toweapons Bow;
if (isweapon) {
destroy;
}
}


GrowlZ:

I was under the impression that "playerenters" toweapons cause illegal data errors. And that, from personal experience, free servers can't overwrite existing weapons of the player with ones of the same name. Still, I could be completely wrong. I ain't scripted online for a while. *shrug*

Python523 07-24-2002 02:47 AM

Quote:

Originally posted by screen_name
GrowlZ:

I was under the impression that "playerenters" toweapons cause illegal data errors. And that, from personal experience, free servers can't overwrite existing weapons of the player with ones of the same name. Still, I could be completely wrong. I ain't scripted online for a while. *shrug*

adding a weapon without an image disconnects you, and yes you can overwrite but with my experiances when i was scripting for a free server, it takes awhile to completelly update


All times are GMT +2. The time now is 07:58 PM.

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