Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 10-15-2004, 02:30 PM   #1 (permalink)
Forum Newbie
 
Join Date: Apr 2003
Posts: 38
Send a message via ICQ to coldrake
Default How to remove an item from a players pack

I have several quests where it would be useful to remove an item from a players pack after the quest is complete. For example, a key spawns on a certain monster that opens a specific door. After the player uses the key to open the door, it would be nice to remove the key from the players pack.

Do you have any suggestions or ideas as to how this can be done?

Thanks!
coldrake is offline   Reply With Quote
Old 10-15-2004, 03:22 PM   #2 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by coldrake
I have several quests where it would be useful to remove an item from a players pack after the quest is complete. For example, a key spawns on a certain monster that opens a specific door. After the player uses the key to open the door, it would be nice to remove the key from the players pack.

Do you have any suggestions or ideas as to how this can be done?

Thanks!
http://www.runuo.com/forum/forumdisplay.php?f=18
http://www.runuo.com/forum/search.php?
Come to see whats i have
__________________
Thanks,
Tom Sapp
My Shard - http://www.sappsworld.com/raisorsshard
All of my scripts are officially supported at:
http://www.sappsworld.com
Go there for latest updates.
*** RunUO forum posts will be updated as well ***
raisor is offline   Reply With Quote
Old 10-15-2004, 04:29 PM   #3 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by coldrake
I have several quests where it would be useful to remove an item from a players pack after the quest is complete. For example, a key spawns on a certain monster that opens a specific door. After the player uses the key to open the door, it would be nice to remove the key from the players pack.

Do you have any suggestions or ideas as to how this can be done?

Thanks!
Loop through the Items array, find the item you wish, and use the Delete method to remove it from the world.
Phantom is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5