Aller au contenu

Photo

selecting specific treasure


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Quilistan

Quilistan
  • Members
  • 111 messages
I know there are scripts for selecting only potions, weapons, clothing and such, but I didn't find anything that was specific to scrolls?

I use the "World Chests" to hold my treasure tables and I would love a script that pulled only scrolls from each chest?

This was my attempt at selecting from a World Medium Chest but it didn't work.
#include "x0_i0_treasure"
void main()
{
 
 CTG_CreateSpecificBaseTypeTreasure(TREASURE_TYPE_MED, GetLastOpener(), OBJECT_SELF, TREASURE_BASE_TYPE_SCROLL);
}

I also added a line in x0_i0_treasure:

int TREASURE_BASE_TYPE_SCROLL = 13006;

This got things to compile, but It didn't work in game. I am obviously missing something? Is there a default script for getting a scroll only? If there isn't a default script, I can repost this in the scripting section for more help.

#2
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
Here is a thread that discusses several of the scripts that are available. The closest to what you are looking for is probably nw_o2_bookshelf, but you might be able to use or modify gp_treasure_op_de. I don't think there is one specifically for scrolls though.



Regards

#3
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
(duplicate post)

Modifié par Kaldor Silverwand, 06 janvier 2011 - 11:37 .