Graal Forums

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

Dragona2002 07-16-2002 09:27 PM

Remove
 
2 questions (again :D)

1.i just cant figure out how to remmove a weapon from ur Q window
(weaponlist)

2. how do i remove the item from a inventory ?

example of command :


if (playertouchsme) {
toinventory itemname;
}

how do i delete it from the inventory ?

emortylone 07-16-2002 09:35 PM

1: Make a weapon like this
If (playerenters) {
toweapons Bomb;
destroy;
}
Voila

2: Unset the flag
if (playerenters) unset itemname;

Dragona2002 07-16-2002 10:42 PM

okay thx for number 2 but 1 doesnt make sense = /
it only will destroy the NPC on the board not in inventory = /

screen_name 07-16-2002 11:21 PM

unset WeaponName?


i didnt know about that, lol :)

user13-xo 07-17-2002 12:02 AM

Quote:

Originally posted by Dragona2002
okay thx for number 2 but 1 doesnt make sense = /
it only will destroy the NPC on the board not in inventory = /

If there is a NPC Server you could use

removeweapon WeaponName;

or you could make a script like

if (playertouchsme) toweapons WeaponName;
if (weaponfired) destroy;

Max-imus 07-17-2002 12:20 AM

With an NPC Server you can just delete it from the level and then delete it from the weapons database.

On a playerworld without an NPC Server, just put this in the weapon you want to delete

if (playertouchsme) {toweapons weaponname;}
if (weaponfired) {sleep.1;destroy;}
if (isweapon){sleep.1;destroy;}

If the original weapon isn't on the server anymore, just make a new npc with an image, put that script in the npc, and make sure the weapon name is the same.

AlexH 07-17-2002 12:28 AM

Re: Remove
 
Quote:

Originally posted by Dragona2002
2 questions (again :D)

1.i just cant figure out how to remmove a weapon from ur Q window
(weaponlist)

2. how do i remove the item from a inventory ?

example of command :


if (playertouchsme) {
toinventory itemname;
}

how do i delete it from the inventory ?

1) removeweapon weapon name (only if your using NPC Server)
If your not using NPC Server you can add a bit at the bottom of the script like
NPC Code:
if (flagnamehere) {
destroy;
}


2) unset flag (flag will be whatever you have toinventoried)


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

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