Graal Forums  

Go Back   Graal Forums > Search Forums
FAQ Members List Calendar Today's Posts

Showing results 1 to 25 of 31
Search took 0.00 seconds.
Search: Posts Made By: 100Zero100
Forum: NPC Scripting 02-08-2014, 03:28 PM
Replies: 6
Views: 1,638
Posted By 100Zero100
Are you attempting to do Blah64's suggestion in...

Are you attempting to do Blah64's suggestion in an onCreated on the serverside?

He put findplayer(player.account), which is redundant for "player." Either way, if you tried that in the onCreated,...
Forum: NPC Scripting 02-06-2014, 08:42 AM
Replies: 5
Views: 1,703
Posted By 100Zero100
More or less. The right coder can make any graal...

More or less. The right coder can make any graal player their *****.



Yes this works in a limited capacity, but it won't return all of the keys bound to it I'm afraid..

By default, sword is...
Forum: NPC Scripting 02-05-2014, 11:52 PM
Replies: 5
Views: 1,703
Posted By 100Zero100
There's tons of abusive **** developers might do!...

There's tons of abusive **** developers might do! GraalControl is destroyable! The $pref for allowmasses can be forced on! Save-to-file functions allow staff to see all accounts on a single PC, as...
Forum: NPC Scripting 02-05-2014, 01:04 PM
Replies: 10
Views: 1,826
Posted By 100Zero100
I wasn't trying to imply that you can make some...

I wasn't trying to imply that you can make some superbly shaded bodies or whatever and have some really outrageous customization.

But just taking body.png for example and adding green pants to it,...
Forum: NPC Scripting 02-05-2014, 11:02 AM
Replies: 5
Views: 1,703
Posted By 100Zero100
Remap default keys in script?

We all know keydown(0) is the direction for up. Similarly, keyName(0) yields "Up" or whatever.

It's editable via the F3 menu. Is there a function to edit the key?

Seems as though the vars for...
Forum: NPC Scripting 02-05-2014, 10:56 AM
Replies: 10
Views: 1,826
Posted By 100Zero100
One would use this sort of thing to recreate the...

One would use this sort of thing to recreate the default behavior of the outfit, where "white coat" in graphic can be remapped into a different color (eg, .colors[#]).

It would certainly be...
Forum: NPC Scripting 02-05-2014, 10:51 AM
Replies: 5
Views: 1,748
Posted By 100Zero100
In my proposed scenario, I'd want to build a full...

In my proposed scenario, I'd want to build a full QWERTY keyboard on-screen WITHOUT the need for the player to press down all of the keys on their keyboard.

If you read my second post, I...
Forum: NPC Scripting 02-03-2014, 10:20 PM
Replies: 5
Views: 1,748
Posted By 100Zero100
Retrieving "keycode" from: function...

Retrieving "keycode" from:

function keyPressed(keycode, key, scancode) {
}

keycodes for lowercase letters and uppercase letters are off by 256. ie, if 'a' is 65, 'A' is 65 + 256. This is also...
Forum: NPC Scripting 02-03-2014, 12:40 AM
Replies: 10
Views: 1,826
Posted By 100Zero100
The string is the array of color entries, not...

The string is the array of color entries, not sure why it's labeled str.

The int is an index of that array; that index's color draws transparent.
Forum: NPC Scripting 02-03-2014, 12:38 AM
Replies: 5
Views: 1,748
Posted By 100Zero100
keyName2()?

Seems broken.

keyName2(getKeycode("a")) should retrieve "a" and instead retrieves "A"

y it do dis?

Is there another method to retrieve a key name from its key code, without making my own...
Forum: NPC Scripting 01-28-2014, 02:57 AM
Replies: 5
Views: 1,790
Posted By 100Zero100
You could opt to just make a grid of indices that...

You could opt to just make a grid of indices that correlates to the image grid. When an item is placed into the grid, it would set indices of the array to 1 where it's blocking.

Should be pretty...
Forum: NPC Scripting 01-28-2014, 02:27 AM
Replies: 0
Views: 758
Posted By 100Zero100
pl.isBuddy on clientside

This pl.isbuddy functionality (for the playerlist) seems spotty. Seems to work if I choose not to use the serverside saving playerlist option, and seems to work temporarily if I manually add the...
Forum: NPC Scripting 01-23-2014, 04:34 PM
Replies: 1
Views: 1,027
Posted By 100Zero100
A few GUI Commands not working?

I have a GUI system and ever since v6 went live I can't seem to get two things to work properly. I've tried basically everything I can think of, including isolated script testing. Are these just...
Forum: NPC Scripting 01-21-2014, 08:46 PM
Replies: 6
Views: 1,603
Posted By 100Zero100
Didn't know it was already covered. Thanks for...

Didn't know it was already covered. Thanks for bringing that up.

Very annoying.
Forum: NPC Scripting 01-21-2014, 04:44 PM
Replies: 6
Views: 1,603
Posted By 100Zero100
Not that long. The system was working perfectly...

Not that long. The system was working perfectly in 2012 and timevar2 has been a properly functioning variable since 2005 when it was elevated from server uptime/graal installation time and turned...
Forum: NPC Scripting 01-21-2014, 04:12 PM
Replies: 6
Views: 1,603
Posted By 100Zero100
timevar2 is off?

As of writing this:

http://www.epochconverter.com/

Says the Unix Epoch Time is: 1390323226

At the same time, I echoed timevar2.

Says timevar2 is equal to: 1390321106.845321893
Forum: Code Gallery 01-19-2014, 02:16 PM
Replies: 5
Views: 2,885
Posted By 100Zero100
Levels are not loaded into server memory by...

Levels are not loaded into server memory by default. They are simply in the server's HDD and load when a player enters (and they unload from memory like 5-10 minutes later), same as all level NPCs...
Forum: Code Gallery 01-18-2014, 08:17 PM
Replies: 5
Views: 2,885
Posted By 100Zero100
Dump Useless Local NPCs

I made this script in 2011-2012 and it worked a bit differently (some stuff was changed it seems). Basically the idea is to delete any putnpc2's that exist on the server, in levels that no longer...
Forum: NPC Scripting 01-18-2014, 08:09 PM
Replies: 5
Views: 1,228
Posted By 100Zero100
putnpc2(0,0,...).z = 5; too - but I wouldn't...

putnpc2(0,0,...).z = 5; too - but I wouldn't recommend it.

Some people like it.
Forum: NPC Scripting 01-18-2014, 07:59 PM
Replies: 13
Views: 3,750
Posted By 100Zero100
Starfire's method works with substring() too, for...

Starfire's method works with substring() too, for multiple numbers, by using temp.num.length() looping.

I disagree with everybody. I would use .charat()

function numberToArray(num) {
for...
Forum: NPC Scripting 01-15-2014, 08:40 AM
Replies: 10
Views: 2,904
Posted By 100Zero100
I have a lot of respect for the amount of effort...

I have a lot of respect for the amount of effort you put into that example. However, I need to respectfully disagree.

To begin, I assume you put this._ instead of just this. because their typing...
Forum: NPC Scripting 01-14-2014, 05:07 PM
Replies: 1
Views: 1,006
Posted By 100Zero100
Random Neat GScript Stuff

Since I've finally got an active forum account, I'll share with you guys some stuff that I've noticed in GS over the years that I felt didn't make sense / didn't behave as expected. I would consider...
Forum: NPC Scripting 01-14-2014, 04:43 PM
Replies: 10
Views: 2,904
Posted By 100Zero100
Could it? I can't think of a way that you could...

Could it? I can't think of a way that you could avoid looping over the matches on every keystroke. I figured it was a small deal though -- a loop of about 3-4 arrays on a keypress seemed minor, but I...
Forum: NPC Scripting 01-14-2014, 04:49 AM
Replies: 38
Views: 4,930
Posted By 100Zero100
If you want to find a player *in front* you would...

If you want to find a player *in front* you would use the vecx() and vecy() functions. vecx(player.dir) returns -1 for left, +1 for right, and 0 for up/down. Thus, doing player.x + vecx(player.dir)...
Forum: NPC Scripting 01-14-2014, 04:34 AM
Replies: 10
Views: 2,904
Posted By 100Zero100
You trolling me? In my first suggestion, I...

You trolling me?

In my first suggestion, I said that the reset timer (which could be defined as a number larger than 2 seconds) would allow the player that amount of time between EACH letter. So...
Showing results 1 to 25 of 31

 
Forum Jump

All times are GMT +2. The time now is 10:51 PM.


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