Forum: NPC Scripting
02-08-2014, 03:28 PM
|
Replies: 6
Views: 1,638
|
Forum: NPC Scripting
02-06-2014, 08:42 AM
|
Replies: 5
Views: 1,703
|
Forum: NPC Scripting
02-05-2014, 11:52 PM
|
Replies: 5
Views: 1,703
|
Forum: NPC Scripting
02-05-2014, 01:04 PM
|
Replies: 10
Views: 1,826
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
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
|
Forum: NPC Scripting
02-05-2014, 10:51 AM
|
Replies: 5
Views: 1,748
|
Forum: NPC Scripting
02-03-2014, 10:20 PM
|
Replies: 5
Views: 1,748
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
|
Forum: NPC Scripting
02-03-2014, 12:38 AM
|
Replies: 5
Views: 1,748
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
|
Forum: NPC Scripting
01-28-2014, 02:27 AM
|
Replies: 0
Views: 758
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
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
|
Forum: NPC Scripting
01-21-2014, 04:44 PM
|
Replies: 6
Views: 1,603
|
Forum: NPC Scripting
01-21-2014, 04:12 PM
|
Replies: 6
Views: 1,603
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
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
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
|
Forum: NPC Scripting
01-18-2014, 07:59 PM
|
Replies: 13
Views: 3,750
|
Forum: NPC Scripting
01-15-2014, 08:40 AM
|
Replies: 10
Views: 2,904
|
Forum: NPC Scripting
01-14-2014, 05:07 PM
|
Replies: 1
Views: 1,006
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
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
|
Forum: NPC Scripting
01-14-2014, 04:34 AM
|
Replies: 10
Views: 2,904
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...
|