Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-16-2002, 09:27 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
Talking Remove

2 questions (again )

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 ?
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #2  
Old 07-16-2002, 09:35 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
1: Make a weapon like this
If (playerenters) {
toweapons Bomb;
destroy;
}
Voila

2: Unset the flag
if (playerenters) unset itemname;
Reply With Quote
  #3  
Old 07-16-2002, 10:42 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
okay thx for number 2 but 1 doesnt make sense = /
it only will destroy the NPC on the board not in inventory = /
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #4  
Old 07-16-2002, 11:21 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
unset WeaponName?


i didnt know about that, lol
__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 07-17-2002, 12:02 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
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;
Reply With Quote
  #6  
Old 07-17-2002, 12:20 AM
Max-imus Max-imus is offline
Registered User
Join Date: May 2002
Posts: 201
Max-imus is on a distinguished road
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.
__________________
¤Mā×Īmū§¤ - Manager of Delteria
Reply With Quote
  #7  
Old 07-17-2002, 12:28 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Re: Remove

Quote:
Originally posted by Dragona2002
2 questions (again )

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)
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:10 AM.


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