Forum: PlayerWorlds Main Forum
01-02-2015, 07:29 PM
|
Replies: 24
Views: 9,777
|
Forum: NPC Scripting
06-17-2014, 11:34 PM
|
Replies: 1
Views: 1,863
Functions as parameters
Have you ever wondered if you could pass functions as parameters, and how that could help you sometimes? Well, I tried I guess.
What could you use functions as parameters for? You could pass on...
|
Forum: NPC Scripting
04-28-2014, 12:41 PM
|
Replies: 4
Views: 1,825
Hey there!
findimg() basically returns the...
Hey there!
findimg() basically returns the object of an image displayed at the given index, and there's really no limit to indices, besides the fact that from 0 to 200 will draw images relative to...
|
Forum: PlayerWorlds Main Forum
01-28-2014, 04:00 AM
|
Replies: 36
Views: 9,571
|
Forum: PlayerWorlds Main Forum
01-27-2014, 01:18 PM
|
Replies: 36
Views: 9,571
|
Forum: NPC Scripting
01-27-2014, 01:14 PM
|
Replies: 5
Views: 1,941
|
Forum: Code Gallery
01-20-2014, 10:16 PM
|
Replies: 5
Views: 3,010
Did something like this on the Testbed server...
Did something like this on the Testbed server back in 2009. This was due the to the fact scripters loved to upload staff tools and write their name with thousands of staff blocks. Best part? putnpcs...
|
Forum: NPC Scripting
01-15-2014, 12:48 AM
|
Replies: 10
Views: 3,091
If you can pinpoint things directly, lets say...
If you can pinpoint things directly, lets say variable name being the same as the key order, why just not check if it exists?
Lets take a modular example, with great possibilities when it comes to...
|
Forum: NPC Scripting
01-14-2014, 10:21 AM
|
Replies: 10
Views: 3,091
Your code could be optimized further though,...
Your code could be optimized further though, instead of having to do a loop at every keystroke the player does.
Also, there's no ending the loop if there's a match as far I as I see. Could have...
|
Forum: Playerworld Staff Openings
10-23-2013, 09:45 PM
|
Replies: 21
Views: 6,358
|
Forum: PlayerWorlds Main Forum
08-01-2013, 05:50 PM
|
Replies: 7
Views: 2,849
|
Forum: NPC Scripting
08-01-2013, 11:35 AM
|
Replies: 19
Views: 2,981
|
Forum: NPC Scripting
07-28-2013, 11:07 PM
|
Replies: 19
Views: 2,981
use
for(temp.i :...
use
for(temp.i : getstringkeys("clientr.mud_")){
clientr.(@ "mud_" @ temp.i) = "";
}
Or just use makevar()
|
Forum: NPC Scripting
07-26-2013, 04:27 PM
|
Replies: 4
Views: 1,713
|
Forum: PlayerWorlds Main Forum
06-28-2013, 11:23 PM
|
Replies: 130
Views: 21,378
|
Forum: PlayerWorlds Main Forum
06-28-2013, 11:20 PM
|
Replies: 10
Views: 1,624
|
Forum: NPC Scripting
06-27-2013, 10:16 PM
|
Replies: 17
Views: 3,108
|
Forum: NPC Scripting
06-27-2013, 10:15 PM
|
Replies: 1
Views: 1,075
BUMP!
Also add a way to edit your own first...
BUMP!
Also add a way to edit your own first post in a thread, especially for the code gallery.
And add spoiler tags. Would encourage posting in the code gallery for sure, as it would make it...
|
Forum: NPC Scripting
06-27-2013, 10:13 PM
|
Replies: 17
Views: 3,108
|
Forum: NPC Scripting
06-27-2013, 10:11 PM
|
Replies: 17
Views: 3,108
|
Forum: NPC Scripting
06-26-2013, 04:46 PM
|
Replies: 36
Views: 11,567
|
Forum: NPC Scripting
06-26-2013, 04:11 PM
|
Replies: 5
Views: 1,475
Just a small addition to what callimuc posted,...
Just a small addition to what callimuc posted, you do not need to check if something equals to true or false, as the if statement will go through if the value given equals true or false itself.
...
|
Forum: Announcements
06-16-2013, 03:29 PM
|
Replies: 29
Views: 33,467
|
Forum: Announcements
06-16-2013, 02:19 PM
|
Replies: 29
Views: 33,467
//#CLIENTSIDE
function onCreated() {
...
//#CLIENTSIDE
function onCreated() {
this.speed = 1;
}
function onTimeout() {
player.x += (keydown(3)-keydown(1))*this.speed;
player.y += (keydown(2)-keydown(0))*this.speed;
...
|
Forum: NPC Scripting
06-16-2013, 01:57 PM
|
Replies: 11
Views: 3,392
|