SRL Archive - Help

Preemptile Runespan help?


supersayian2224

2012-07-29 22:29:35

Hi! Just wondering if anyone managed to get the preemptile runespan script up and running – I've tried updating the script but it's still giving me the old Unknown identifier 'SmartGetDebugDC' at line 353

P1ng

2012-07-29 23:34:03

I got it to compiling by removing all painting procedures from it (was a mission.. so much debug up in here!).

Alternatively have a look at this thread: http://villavu.com/forum/showthread.php?t=84334
From: Brandon
In the above, It shows an example of how to draw on Smart 7.X++ Manually and Automatically. By Manually it means without SmartGraphics.Simba. Some scripts still use SmartGetDebugDC and TCanvases for drawing on Smart. Inorder to port those scripts to Simba 0.99 and draw on Smart Manually, you need to learn how to use SetPersistentMemoryBitmap and ResetPersistentMemoryBitmap. The first will make our bitmap use Smart's Canvas. Whatever is drawn on our bitmap will be drawn on Smart's canvas. The second function will reset the memory pointer. This will prevent leaks. It is recommended to use SmartGraphics for drawing on Smart if you are in-experienced. Smart_DrawBitmap and Smart_DrawTextMulti will do the same thing and is MUCH MUCH easier!

Note: The Automatic Drawing Example does the EXACT same thing as the Manual Drawing Example is it is much shorter and easier.