Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/20/15 in all areas

  1. function script rewardchest { setarray .@reward, 20103,1, 60, 20104,1, 10, 20105,1, 10, 20106,1, 10, 20106,1, 5, 20107,1, 5; .@size = getarraysize( .@reward ); for( set .@i, 2; .@i < .@size; .@i += 3 ) .@percent[.@i] += .@reward[.@i]; .@r = rand( .@percent[ .@size -1 ] +1 ); for( set .@i, 2; .@i < .@size; .@i += 3 ) if( .@percent[.@i] > .@r ) break; getitem .@reward[ .@i-2 ], .@reward[ .@i-1 ]; return; }
    1 point
  2. Please at least test your solution before offering it to those who are in need. @Mihael, you should check your data/luafiles514/lua files/stateicon/stateiconinfo.lub That file contains all the client-side buff descriptions. Edit accordingly, but make sure you follow the formatting.
    1 point
  3. Heya, Alright, I've modified my editor a bit, it now reads "compress2" before "compress", so you can repack a GRF with your custom compression directly, thank you ! It will always compress the file table with the normal zlib library for obvious reasons. On an unrelated note though, I was a bit curious and I checked worm_tail_damage.wav. It is indeed not compressed properly and almost all GRF editors can't read it. The original cps.dll can read it perfectly fine however, so that's what I rely on when repacking!
    1 point
×
×
  • Create New...