Author Topic: Item Snagging  (Read 1530 times)

Offline Amazordra

  • Planewalker
  • *****
  • Posts: 16
Item Snagging
« on: March 22, 2005, 10:15:53 PM »
Since I'm incredibly lazy and tired at the moment....

Does anyone know if it is possible to take a party item without the character taking the item being near whichever character has the item?

Gah, I hope that makes sense.
Vivent les morts!

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Item Snagging
« Reply #1 on: March 23, 2005, 05:58:38 AM »
TakePartyItem()?
TakeItem()?
TakeItemReplace()?
DestroyItem()?
Earn Money Sleeping.

Ama at College

  • Guest
Re: Item Snagging
« Reply #2 on: March 23, 2005, 01:32:12 PM »
I thought a character had to be near the npc with the item for those to work. o.o

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Item Snagging
« Reply #3 on: March 23, 2005, 01:33:17 PM »
Beats me.  Test it?
Earn Money Sleeping.

Offline Bons

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1237
  • Gender: Female
  • Glad Corvis Isn't Dead Club
Re: Item Snagging
« Reply #4 on: March 23, 2005, 04:04:18 PM »
I doubt proximity matters, since characters aren't the only objects that can take items. You can use the same actions in an area script to strip a party of goodies, etc.
Newt had always suspected that people who regularly used the word "community" were using it in a very specific sense that excluded him and everyone he knew.

             --Neil Gaiman, Terry Pratchett, "Good Omens"

Offline Amazordra

  • Planewalker
  • *****
  • Posts: 16
Re: Item Snagging
« Reply #5 on: March 23, 2005, 11:51:16 PM »
I haven't tested it myself yet, I'm not home long enough to do so.  :'(

*explains a bit more about the problem* The reason why I wanted to know if it was possible to take an item without any distance restrictions (In my case, its two different characters in two different areas.) is because when an npc leaves the group, this npc drops an item into Player1's inventory and teleports somewhere else. *Why* this npc does so I cannot figure out (nothing in the coding mentions a "DropItem", "GiveItem", etc trigger... but the npc only leaves behind one item--not all of the items in the npc's inventory, so I figure it can't be because of the LeaveParty().... ), which means I have to find a way to reclaim the item that doesn't involve destroying it and creating another one.
« Last Edit: March 23, 2005, 11:53:19 PM by Amazordra »
Vivent les morts!

Offline Ghreyfain

  • Moderator
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Item Snagging
« Reply #6 on: March 24, 2005, 12:17:58 AM »
It's probably flagged as a quest item.  See: Flail of Ages.  Unflag that.
Earn Money Sleeping.

Offline Bons

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1237
  • Gender: Female
  • Glad Corvis Isn't Dead Club
Re: Item Snagging
« Reply #7 on: March 24, 2005, 12:19:35 AM »
The reason why I wanted to know if it was possible to take an item without any distance restrictions (In my case, its two different characters in two different areas.) is because when an npc leaves the group, this npc drops an item into Player1's inventory and teleports somewhere else. *Why* this npc does so I cannot figure out (nothing in the coding mentions a "DropItem", "GiveItem", etc trigger... but the npc only leaves behind one item--not all of the items in the npc's inventory, so I figure it can't be because of the LeaveParty().... )

Check the item to see if it's flagged non-sellable/quest-critical. That will cause an item to be shifted to Player1's inventory when the NPC previously holding it does a LeaveParty().

Urk! Ghreyfain beat me to this! Bah! Post anyway!
Newt had always suspected that people who regularly used the word "community" were using it in a very specific sense that excluded him and everyone he knew.

             --Neil Gaiman, Terry Pratchett, "Good Omens"

Ama at College

  • Guest
Re: Item Snagging
« Reply #8 on: March 24, 2005, 12:55:22 PM »
Yeah, I did indeed flag it as unsellable.

(D'oh! *smakes self*)

Thank you both for the help, you've just spared me many hours of scripting.  :)

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: