SRL Archive - OSR Help

Using FindSymbol with the new Poll


aablmd83

2015-05-10 15:12:03

I'm editing an old script, and at one point it uses FindSymbol to locate the bank in Draynor Village. The only problem is that the new poll icon sometimes over shadows the bank icon. To remedy this I tried adding the Poll icon to the FindSymbol code, but I could never get it to work.

I used PrtSc to find the Poll icon, isolated it in paint, converted it to string through Simba, then simply pasted it over the bmp string for a different icon (I used Candle Store), but it won't find the symbol when I test it out. I've tried different sizes for the bmp, got the icon from different sources (in-game, in-browser maps, etc.) but no luck.

honeyhoney

2015-05-10 18:54:47

Could you share the code and bitmap(s) you have tested? It may make it easier to debug.

The only thing I can think of for now is that you didn't update the color of the symbol too.

See comment below for example:

    SYMBOL_MiningSpot, 'mining site', 'mine':               
begin
SymbolBitmap := BitmapFromString(6, 9, 'meJwrr60vR0IHj51cuGxlUnoWXATI' +
'BQra5S4wT5+YW1QKFAmNjgNytWObpf3LHFw9gYp9g0KBXDH7QqBii' +
'HagCJ9lEoQL1A4UgbAhXGQRCBeC0LgQBAAGFlo9');
Result := 5077645; //update this too!
end;