Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  Remove items from creature script
Author  UnseenOne
Submitted / Updated  08-27-2004 / 11-22-2006
Category  Inventory Item
Expansions  NWN-1.62
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Manipulation
Includes  None
Description
This is a function to remove items and gold from a creature. It can either remove everything, only items equiped, only gold, only non-equiped items or any mix of those options (like everything but gold). In addition it can automatically move all the items to another object (like a chest) instead of destroying them completely.

Files

NameTypeSizeDownloads
NO FILES
SCORE OUT OF 10
10
1 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (3):

Posted by UnseenOne at 2006-05-17 08:09:53    
Fixed a bug where gold wasn't removed properly, should work now.

Stefano_Falcao> Thanks for the vote, glad you found it useful

GrimJesta> Here's an example of how to remove everything when entering a trigger

First make a new script and save it as something like "inc_inventory". In this script you remove the "void main() {}" part (it's important that part is not there) and place instead my entire script.

Then in the triggers OnEnter event you place the following script (Remember to edit the first line if you didn't call the other file "inc_inventory")

#include "inc_inventory"
void main()
{
object oPC = GetEnteringObject( );
if (!GetIsPC(oPC)) return ;
RemoveItems(oPC, TRUE, TRUE, TRUE); // Remove everything
}

Hope that helps

Posted by GrimJesta ( 24.195.xxx.xxx ) at 2005-11-22 14:30:00    
Argh, I must be an idiot. I can't figure out how to use this one. Is this the wrong script to try and use if I want a trigger to remove everything on a PC? I'm assuming so since this bad bot refuses to work. Back to the ol' drawing board...

-=Grim=-

Posted by Stefano_Falcao at 2005-07-14 17:00:49    Voted 10.00 on 07/14/05
Exactly what I was looking for. Thanks a lot! :)

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Visual Effects


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters