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-04-2009, 05:02 AM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Post Inventory script help!

Hi, I have here a inventory script. It drops items right (Most of the time), but when the item is on the ground after dropping it, and you actiongrab it (press a to pick it up), it stays on the ground and doesn't delete from the map, and add the weapon back to your player like I wanted.

Here is the Weapon, called "-System/Inventory".

-SystemInventory.txt

Now, heres the class that the weapon joins to called "object_droppeditem".

object_droppeditem.txt

So to recap, The problems are labeled below from least of worries to worst of worries:

1 The items Don't always drop. They drop sometimes.

2BIGGEST PROBLEM) When the item drops on the ground, when you go to actiongrab the item to pick it up and put it back in your inventory, it stays on the ground and doesn't add the weapon to the player that picks it up.

I appreciate it if someone helps me. Thanks.

-Jamerson
Reply With Quote
  #2  
Old 07-04-2009, 06:04 AM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
If you can seclude the problem areas in different text files, it wld be easier to help you.
Reply With Quote
  #3  
Old 07-04-2009, 06:15 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
1. Implement debug messages and trace through your script, perhaps it's going wrong somewhere and not triggering.

2. Implement echo's or other debug messages so you can see if it's even getting grabbed. After that check your script that triggers action grab, perhaps it's not working.

I.e:

PHP Code:
function onActionGrab() {
  echo(
"omg worked!"); // would echo on NC

Future note for drop logs, you may want to have them for each individual because a masterlog that holds ALL drops will get very messy and useless. ( Zodiac's Master Drop Log is like 700 MB lol )
__________________
Quote:
Reply With Quote
  #4  
Old 07-04-2009, 06:27 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I'd particularly be interested in debugging the data you are sending to the putnpc2. It'd be the first place I'd check.
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 02:17 PM.


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