View Single Post
  #10  
Old 09-16-2017, 02:32 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,729
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
I broke down and placed my script inside of a weapon NPC which has fixed a lot of the issues I was having before. Currently I am calling it in a level NPC like this:

Graal Script Code:
function onPlayerTouchsMe() {
  
temp.npc findweapon(WEAPON).FUNCTION(PARAMPARAM);

but I realize I could do something like

Graal Script Code:
function onPlayerTouchsMe() {
  
triggerClient("gui""WEAPON"PARAMPARAM);

I think I prefer the second method as it looks a lot cleaner, and believe it would function in the same way, but I'm wondering if one way is superior to the other, if there are any security flaws in either method, etc.

Quote:
Originally Posted by Crow View Post
Graal Script Code:
function GraalControl.onResize(widthheight) {

For whatever reason I assumed onResize was restricted to GUI Controls. Thanks, and thank you to everyone who has helped me out thus far.

Now I just need to understand this scrolling bug.
__________________
Save Classic!
Reply With Quote