CreatureEvent [TFS 1.1] Random Item Stats

Doitforthegains

Well-Known Member
Joined
Aug 30, 2014
Messages
228
Best answers
0
Reaction score
69
Added exactly what you have posted in the thread, I can loot rares just fine; but epic/legendary don't drop :/
 
OP
zbizu

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
2,550
Best answers
1
Reaction score
1,448
Location
Poland
copy whole script from first post again and increase first stat rates
 

Doitforthegains

Well-Known Member
Joined
Aug 30, 2014
Messages
228
Best answers
0
Reaction score
69
Does it always say *rare* even if its an epic or legendary? That would make sense as to why I was fooled if its the case
 
OP
zbizu

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
2,550
Best answers
1
Reaction score
1,448
Location
Poland
Does it always say *rare* even if its an epic or legendary? That would make sense as to why I was fooled if its the case
It's displayed only to let player know that he looted something unique. You may change that text if it's confusing for you.
 

Eldin

Eldin Projects
Joined
Jun 12, 2008
Messages
1,302
Best answers
0
Reaction score
526
Location
Sweden
Dearly hope that it will be possible to use with the Slot System soon. :)

Kind Regards,
Eldin.
 

Doitforthegains

Well-Known Member
Joined
Aug 30, 2014
Messages
228
Best answers
0
Reaction score
69
One question I have, thats off topic kind of...is how do you add the gems to have a global loot chance? I've tried searching for one but I guess they're all for 0.3.6 because nothing is working for me
 
OP
zbizu

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
2,550
Best answers
1
Reaction score
1,448
Location
Poland
take a look at find_loot_Container(pos)

if math.random(1, 100000) * configManager.getNumber(configKeys.RATE_LOOT) <= globalchance then
c:addItem(itemId, count, index, flags)
end
 

Doitforthegains

Well-Known Member
Joined
Aug 30, 2014
Messages
228
Best answers
0
Reaction score
69
Oh man I feel dumb, I meant to post this on your thread about the slotsystem >.<
 

nugo

Australia OT Mapper
Joined
Apr 1, 2009
Messages
224
Best answers
1
Reaction score
46
Nice man got it working. Just some tips if you genuinely plan to keep it updated. Have a clearer animation if possible when a rare peice of loot drops. Can you play an animation over the corpse for example. Also is it possible with defense plus 50% to actually add it for example def 50 +25.
 
OP
zbizu

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
2,550
Best answers
1
Reaction score
1,448
Location
Poland
I'm done with this system. Working on something bigger. If you need it, do it yourself.
 
OP
zbizu

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
2,550
Best answers
1
Reaction score
1,448
Location
Poland
Code:
local it_id = item:getId()
local tid = ItemType(it_id):getTransformEquipId()
does it look like 0.4?
 

strutZ

Australian OT Member {AKA Beastn}
Joined
Nov 16, 2014
Messages
1,341
Best answers
6
Reaction score
477
idk im new?
This on is for 1.1 dude ;) the one that Zbizu linked is the original system that was working on 0.4. If you are getting an error using the other threads system post in that thread ;)
 
Top