silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,484
- Solutions
- 9
- Reaction score
- 217
hello folks, I want make a real reward chest system, I have the c++ stuff...
now I need make the creaturescript
how I can start?
function onKill or onDeath ?
I need to check if are in the array of the bosses
my idea to create the loot and send to player is:
then I'll create a bag, and into this bag I put the loot, the loot will are in the same script, not get from the monster ...
to player get loot he will give damage.
the mostdamagekiller will get the "ferumbras'hat" for exemple, anothers "killers" will get some loot, and this loot can be equal !!! like a gaz'haragoth, that give to all killers the blessing charms ...
if unique is true the mostdamagekiller will take this item...
well, its ok!
now, how I create a bag to put the items, something like:
1 - create a bag
2 - create the loot by percent of damage in the boss and put into the bag
3 - send the bag to inbox for exemple
thanks!
now I need make the creaturescript
how I can start?
function onKill or onDeath ?
I need to check if are in the array of the bosses
my idea to create the loot and send to player is:
Code:
target:setDropLoot(false)
to player get loot he will give damage.
the mostdamagekiller will get the "ferumbras'hat" for exemple, anothers "killers" will get some loot, and this loot can be equal !!! like a gaz'haragoth, that give to all killers the blessing charms ...
Code:
local bosses {
bossName = 'ferumbras',
items = {
{itemid = 5903, unique = "true"},
{itemid = 2152, count = 58},
{itemid = 9971, count = 2},
{itemid = 5944, count = 9}
}
}
well, its ok!
now, how I create a bag to put the items, something like:
1 - create a bag
2 - create the loot by percent of damage in the boss and put into the bag
3 - send the bag to inbox for exemple
thanks!