need help with pickup command

Speak about everything in regards to Crossfire.

Moderator: Board moderators

Post Reply
Cor_Tauri

need help with pickup command

Post by Cor_Tauri »

In the gtk client there is a "new" pickup mode that can set pickup to grab just certain things. I no longer use that client, and I don't know how to do this in the client I am using, I copied my key binding from the old keys file, but I want to change it now, and I don't know how.

Can someone explain how pickup 210555blahblahblah works?

I want to add pickup arrows to my current configuration, can I just type the current number into kcalc and convert it to some other base and add some number and convert it back to decimal?

How does it work?
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

From the code:

#define PU_NOTHING 0x00000000

#define PU_DEBUG 0x10000000
#define PU_INHIBIT 0x20000000
#define PU_STOP 0x40000000
#define PU_NEWMODE 0x80000000

#define PU_RATIO 0x0000000F

#define PU_FOOD 0x00000010
#define PU_DRINK 0x00000020
#define PU_VALUABLES 0x00000040
#define PU_BOW 0x00000080

#define PU_ARROW 0x00000100
#define PU_HELMET 0x00000200
#define PU_SHIELD 0x00000400
#define PU_ARMOUR 0x00000800

#define PU_BOOTS 0x00001000
#define PU_GLOVES 0x00002000
#define PU_CLOAK 0x00004000
#define PU_KEY 0x00008000

#define PU_MISSILEWEAPON 0x00010000
#define PU_ALLWEAPON 0x00020000
#define PU_MAGICAL 0x00040000
#define PU_POTION 0x00080000

#define PU_SPELLBOOK 0x00100000
#define PU_SKILLSCROLL 0x00200000
#define PU_READABLES 0x00400000

You need to sum up values for stuff you want to pick, and use 'pickup <that value>'.
Don't forget to add 'PU_NEWMODE (0x80000000)' to your sum.
PU_DEBUG helps too, to make sure you didn't do any mistake.

(note: values in hexadecimal)
Cor_Tauri

thanks!

Post by Cor_Tauri »

Thank you very much, I tried it and it worked fine. I have saved your post to disk so that I can refer to it whenever I find some new reason to change my pickup keybinding.
Post Reply