Die, and drop,

01/21/2010 01:21 -Shunsui-#1
Before anything this is for LOTF 5165,

Alrite so i have a question, On when you die and you Drop items that are in your inventory, Where can i find this Code. and also does it do it random between an amount of items in your inventory, And the main reason iam asking this i'ts so i can make an if Statement checking Sertain Maps that you can drop when you die, Reason is because in Guild War you drop Items wich is not suppost to last time i checked.
01/21/2010 02:27 ~Yuki~#2
search the code where you die it in that code
01/21/2010 02:30 .Ryu#3
Quote:
Originally Posted by ~Yuki~ View Post
search the code where you die it in that code
I dont think he knows where that code actualy is thats why hes asking...
01/21/2010 03:21 pro4never#4
Just search around the source, shouldn't be too hard to find where player death is handled.

Then do something along the lines of

if GC.MyChar.Map != maps you don't want it to drop on

int AmountToDrop = random(1, inventory.count);

then handle the actual dropping of the items.

I'd look for a coemu 5095 thread that had this fully implemented. That would be the best way to see how to do it (assuming by your question that it's not coded at all in new lotf)
01/21/2010 03:53 -Shunsui-#5
Quote:
Originally Posted by pro4never View Post
Just search around the source, shouldn't be too hard to find where player death is handled.

Then do something along the lines of

if GC.MyChar.Map != maps you don't want it to drop on

int AmountToDrop = random(1, inventory.count);

then handle the actual dropping of the items.

I'd look for a coemu 5095 thread that had this fully implemented. That would be the best way to see how to do it (assuming by your question that it's not coded at all in new lotf)
Thanx, Ill give this a try,