SRL Archive - Help

Ideas on noticing something died?


laakerules

2012-01-02 10:54:53

Anyone have any ideas on how to make it notice if the npc you are attacking has died??

Harry

2012-01-02 11:14:20

XP checking if you manage to kill it very quickly (see my script for infos). Easy to produce false positives to combine it with something like a DTM or BMP of an dead HP bar, and you should be good to go.

Killerdou

2012-01-02 13:07:39

the NPC dot will disappear?

laakerules

2012-01-02 13:16:29

Killer, that would work. Except for the fact that the hill giants and other places are super crowded.

wantonman

2012-01-02 16:48:48

okay try findobjcustom until it does not find the object anymore =)

WT-Fakawi

2012-01-02 16:57:15

From: laakerules
Anyone have any ideas on how to make it notice if the npc you are attacking has died??
This is how I do this in HLR: HLR uses a combination of XP calculation (very accurate, but 26.5 for a goblin) and checking for a Full HP Bar Bitmap (one row bitmap, full red) in vincinity of us. It also checks the minimap for legits. If not, then the full hp bar bitmap is my kill.

Here is the bitmap:

  FullHitBar := BitmapFromString(56, 1, 'meJxjYrdmYMhhYGgCIkaGLgw0iZl' +        // bitmap of full red status indicating dead npc // upd. 03-11
'hFjJiYVgIR6wMq+CIg2EjDO3EhTgZDgARhIFHGQZazcRuDQB2WiWA'); // tried assigning lcally, but Simba kept it in mem :(
SetBitmapName(FullHitBar,'FullHitBar');