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.





Retour en haut






