Graal Forums

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

Poogle 07-31-2001 12:44 AM

Removing a weapon
 
How do you remove a weapon? is it like:
if (hasweapon(Weapon)) {
destory;
}

zokemon 07-31-2001 12:46 AM

ya that works i guess

Merlin 07-31-2001 01:11 AM

if you want for a certain weapon like bomb

if (playerenters) {toweapons bomb;
timeout=.5;}
if (hasweapon&&timeout) {destroy;}


this way you can replace the npc in the data base thing so if it's ever added with RC it will destroy itself.

omni-m00gle 07-31-2001 02:14 AM

easier with the NPC server..it's like

removeweapon bomb;

grim_squeaker_x 07-31-2001 02:16 AM

If you don't have a NPC Server just stick in a destroy; at the very top of the script and it'll delete itself when the player who has it reconnects, if you want to keep it in the weaponlist though (For players who like to collect weapons) it's better to put the destroy in the weaponfired part.

Poogle 07-31-2001 05:20 AM

I want it for like a player leaves a level it goes bye bye remember the tred Kewl Idea about HouseBuilder? I GOT THE SCRITP! but i need to weapon to be deleted when they leave certian levels

MoonAngel 07-31-2001 05:44 AM

if (!strequals(#L,levelnamehere.graal){destroy;}

MoonAngel 07-31-2001 05:45 AM

or if you want the weapon for a set of levels, if (!strcontains(#L,test)){destroy;} dunno if itll work but it should delete the weapon when the player enters a level that doesnt have test in the name.


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

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