Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Circle select (https://forums.graalonline.com/forums/showthread.php?t=46372)

tlf288 07-21-2003 04:00 PM

Circle select
 
As many of you know, my math skills aren't exactly that great when it comes to applying it to scripting. So to make myself get better I made this.

I tried to do all the precalculation that I could. If you notice, just by glancing through the script, anything that will make this more efficient then please tell me.

Just press 'z' or 'c' to activate the selector and rotate through the weapons. You can then press 'x' to close the selector. If you want, you can activate the mouse capabilities too. You should be able see where there are commented out if statements to use the mouse, it is near the top. If you turn on mouse checking, the left and right mouse buttons do the same as 'z' and 'c' and clicking the left and right mouse buttons at the same time is the same as 'x'.

You can run around and select your weapons easily. Which is why I tihnk this would be good for storing things such as swords and other weapons so you can easily change during mid battle. Because the keys are mapped to different keys from the default Graal keys, you can fight and select your weapons at the same time.

tlf288 07-21-2003 04:02 PM

1 Attachment(s)
Sorry, after I got done rambling I forgot to attach the file :p .

osrs 07-21-2003 05:23 PM

I liked it.
Sometimes when you press X it bug the script,but i liked a lot. :)

adam 07-21-2003 11:25 PM

I love that. :(

Thought 07-22-2003 01:53 AM

Why do you have this?

NPC Code:
  // Has the weapon count changed?
if (this.oldweaponcount != weaponcount)
this.info = 0; // If so we need to update the info

// Has info been shown yet?
if (this.info == 0)
{



Couldn't it be:

NPC Code:
  // Has info been shown yet?
if (this.oldweaponcount != weaponcount) {
this.info = 0;


(assuming this.info is used elsewhere)


Also, when activating through c, the bracket gets offset incorrectly.


All times are GMT +2. The time now is 01:25 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.