Author Topic: undropable stuff  (Read 8513 times)

Offline bus driver

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
    • Email
undropable stuff
« on: December 11, 2004, 08:43:27 PM »
is it possiable to make a scrip to set all the items in someone inventory to undropable when the enter....if so can it also be made so the items are tradeable and are able to be put in something (box ect) just not droped on the ground.....


« Last Edit: December 11, 2004, 08:46:11 PM by bus driver »

Offline bus driver

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
    • Email
undropable stuff
« Reply #1 on: December 11, 2004, 08:54:33 PM »
i think i found a more simple way of putting it................is to have a script return a droped item on the ground to the persons inventory.....





could someone help me out here....or atleast point in some direction.....(when i say help i mean spoon feed me...please)

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
undropable stuff
« Reply #2 on: December 12, 2004, 08:54:06 AM »
Code: [Select]
// Sets the droppable flag on an item
// - oItem: the item to change
// - bDroppable: TRUE or FALSE, whether the item should be droppable
void SetDroppableFlag(object oItem, int bDroppable)
Something like this maybe, just go over all their items in a while loop on enter.

-Mel

Sher Reyer

  • Guest
undropable stuff
« Reply #3 on: December 14, 2004, 02:38:48 AM »
Mel, they don't understand these varibles and commands and where to put them, this is a script request section, basically bus says he wants a sit script them somebody posts the script for him, get it?

Offline bus driver

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
    • Email
undropable stuff
« Reply #4 on: December 14, 2004, 03:16:41 AM »
Manners nathan manners use them.....there is no reason to be rude..........*mutters*






i worked something out anyway so its all cool thanks mel for taking your time to reply......
« Last Edit: December 14, 2004, 03:18:26 AM by bus driver »

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
undropable stuff
« Reply #5 on: December 14, 2004, 07:06:09 AM »
Quote
Mel, they don't understand these varibles and commands and where to put them, this is a script request section, basically bus says he wants a sit script them somebody posts the script for him, get it?
[snapback]12943[/snapback]
Most basic things can be found by looking at the huge amount of downloadable mod's/scripts on nwnvault or a other site like nwntactics. I just want to help whit small problems where poeple otherwise won't get out for days and lose time. Somethimes I have a problem and just know it has a easy answer but I don't know what it is, I ask someone else then. On this forum this section is the best place to talk about nwn scripts.

If they don't understand it they may get that it's usefull to learn a bit scripting. I would like to see more poeple doing real scripting, not just copy/paste. I just love poeple that know what they do and can make things done.  (Isn't isolated to computer stuff that comment :))

-Mel

Offline Cobra

  • Full Member
  • ***
  • Posts: 134
    • MSN Messenger - pizza_boy_11@hotmail.com
    • View Profile
    • http://
    • Email
undropable stuff
« Reply #6 on: December 16, 2004, 07:20:29 PM »
u dont need a script u just tick of the box above itedifly iteams,,, the box says unbrable u just tick it......


Offline Cobra

  • Full Member
  • ***
  • Posts: 134
    • MSN Messenger - pizza_boy_11@hotmail.com
    • View Profile
    • http://
    • Email
undropable stuff
« Reply #7 on: December 16, 2004, 07:21:00 PM »
undropible** damn cant spell right now..


Offline doofer101

  • Sr. Member
  • ****
  • Posts: 275
    • View Profile
    • http://
undropable stuff
« Reply #8 on: December 16, 2004, 09:31:31 PM »
Quote
Code: [Select]
// Sets the droppable flag on an item
// - oItem: the item to change
// - bDroppable: TRUE or FALSE, whether the item should be droppable
void SetDroppableFlag(object oItem, int bDroppable)
that sets droppable flag for NPC's items. if your looking to set droppable for PC's use
Code: [Select]
SetItemCursedFlag(object oItem, int nCursed)

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
undropable stuff
« Reply #9 on: December 17, 2004, 07:52:58 AM »
Quote
Quote
Code: [Select]
// Sets the droppable flag on an item
// - oItem: the item to change
// - bDroppable: TRUE or FALSE, whether the item should be droppable
void SetDroppableFlag(object oItem, int bDroppable)
that sets droppable flag for NPC's items. if your looking to set droppable for PC's use
Code: [Select]
SetItemCursedFlag(object oItem, int nCursed)
[snapback]13248[/snapback]
I should test those scripts on pc's and npc's. Didn't try that yet.

Maybe someone can say who exactly they are different. (like, only works for, or works on both) I'm busy whit a other kind of scripting atm.

-Mel

Offline doofer101

  • Sr. Member
  • ****
  • Posts: 275
    • View Profile
    • http://
undropable stuff
« Reply #10 on: December 17, 2004, 05:27:47 PM »
droppable is a flag that you put on NPC's items wen you dont want them to drop after they die

cursed means it cannot be removed from the PC's inventory

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
undropable stuff
« Reply #11 on: December 21, 2004, 09:14:16 AM »
*SigH* its stupid .. to make undroppable - For PC's Because, First Of All If Some One Wants To Trade Or Give Something Away They .. Cant


-Vince
:)

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
undropable stuff
« Reply #12 on: December 21, 2004, 01:52:29 PM »
Quote
*SigH* its stupid .. to make undroppable - For PC's Because, First Of All If Some One Wants To Trade Or Give Something Away They .. Cant


-Vince
:)
[snapback]13439[/snapback]
Usefull if you don't want it to be traded or gived away. That case happens.

-Mel

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
undropable stuff
« Reply #13 on: December 21, 2004, 02:30:40 PM »
Quote
Quote
*SigH* its stupid .. to make undroppable - For PC's Because, First Of All If Some One Wants To Trade Or Give Something Away They .. Cant


-Vince
:)
[snapback]13439[/snapback]
Usefull if you don't want it to be traded or gived away. That case happens.

-Mel
[snapback]13454[/snapback]
Well, I Don't Think People Should Go Around Do So Other Players - Cant Trade Or Give Items Away

-Vince  :D