Graal Forums  

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

Showing results 101 to 125 of 151
Search took 0.00 seconds; generated 61 minute(s) ago.
Search: Posts Made By: Stryke
Forum: New Scripting Engine (GS2) 05-19-2008, 09:04 PM
Replies: 24
Views: 2,940
Posted By Stryke
I'm trying to make them like Era cars. There...

I'm trying to make them like Era cars.

There seems to be nothing wrong with the triggeraction's arguments...
It echoed:

First time
x-42.5
y-50
acct-Graal711249
Forum: New Scripting Engine (GS2) 05-19-2008, 08:39 PM
Replies: 24
Views: 2,940
Posted By Stryke
I can't even get on the skateboard now.. BTW...

I can't even get on the skateboard now..
BTW ani = gs1 (#m). And yes, it does work.
Its cause setani is clientside.

Even though whats ur saying is true, if it works the 1st time,
why shouldn't...
Forum: New Scripting Engine (GS2) 05-19-2008, 08:23 PM
Replies: 24
Views: 2,940
Posted By Stryke
Questions about a Skateboard Class NPC

Control-NPC:
function onPlayerLogOut(pl)
{
if(pl.client.RideStatus == 1)
{
pl.client.CurrentRide.destroy();
triggerserver("weapon","-System/Main","boardstay",pl);
}
}
Forum: Bug Report 05-19-2008, 06:58 AM
Replies: 13
Views: 13,073
Posted By Stryke
while your at it please fix guitextedit.border

while your at it please fix guitextedit.border
Forum: New Scripting Engine (GS2) 05-19-2008, 01:41 AM
Replies: 20
Views: 3,771
Posted By Stryke
Solved. The problem was I was supposed to access...

Solved. The problem was I was supposed to access the image of the player's weapon on the clientside, and i was trying to access it off the serverside. Thanks guys!

i'll give rep when i can cause...
Forum: New Scripting Engine (GS2) 05-19-2008, 01:27 AM
Replies: 20
Views: 3,771
Posted By Stryke
If I don't do the looping, can't find the Weapon...

If I don't do the looping, can't find the Weapon id needed to change the image. I've tried findWeapon(), so I used the loop instead. Can you tell me why it won't display the correct images..
Forum: New Scripting Engine (GS2) 05-19-2008, 01:08 AM
Replies: 20
Views: 3,771
Posted By Stryke
function onActionServerside( cmd, dx, dy, wep ) ...

function onActionServerside( cmd, dx, dy, wep )
{
switch ( cmd )
{
case "dropWep":
{
for(temp.i=0;temp.i<player.weapons.size();temp.i++;)
{
...
Forum: New Scripting Engine (GS2) 05-18-2008, 10:12 PM
Replies: 20
Views: 3,771
Posted By Stryke
Questions about an Inventory

1. For dropping items, how would I drop an item in the Weapon List?
Something like this?
putnpc2(playerx,playery,findNPC("Weapons/Sword of Heavens"));
Didn't work for me,.

2. This is what my...
Forum: New Scripting Engine (GS2) 05-18-2008, 09:02 AM
Replies: 4
Views: 1,203
Posted By Stryke
GuiTextEditCtrl border no work

Does GuiTextEditCtrl's profile.border work for anyone? Doesn't for me..
Forum: New Scripting Engine (GS2) 05-18-2008, 08:40 AM
Replies: 20
Views: 3,707
Posted By Stryke
Solved, changed the image number to 665. ...

Solved, changed the image number to 665.
Actually, just displayed the text on the serverside seeing as attr's don't work.
Forum: New Scripting Engine (GS2) 05-18-2008, 02:21 AM
Replies: 20
Views: 3,707
Posted By Stryke
Shovel: temp.i = putnpc2(temp.xx,temp.yy,""); ...

Shovel:
temp.i = putnpc2(temp.xx,temp.yy,"");
temp.i.join("shovel_misc1");
temp.i.attr[30] = player.account;

Class shovel_misc1:
function onCreated() {
setshape(1,32,32);
}
Forum: New Scripting Engine (GS2) 05-18-2008, 01:24 AM
Replies: 20
Views: 3,707
Posted By Stryke
Class troubles...

This is in my weapon script, a Shovel.
temp.i = putnpc2(temp.xx,temp.yy,"join shovel_misc1;");
with(findNPC(temp.i))this.owner = player.account;

shovel_misc1 Class:
function onCreated() {
...
Forum: New Scripting Engine (GS2) 05-18-2008, 01:16 AM
Replies: 20
Views: 2,413
Posted By Stryke
That script won't work for me.. forget it too...

That script won't work for me.. forget it too much trouble. thanks guys
Forum: New Scripting Engine (GS2) 05-17-2008, 11:55 PM
Replies: 20
Views: 2,413
Posted By Stryke
It only shows on my screen now. BTW: it...

It only shows on my screen now.

BTW: it wouldnt show up my screen if _type wasnt allowed

function onCreated() {
leapcontrol = this;
}

public function drawLeap(_type, positionx,...
Forum: New Scripting Engine (GS2) 05-17-2008, 11:24 PM
Replies: 20
Views: 2,413
Posted By Stryke
thx.. made it serverside.. BUT public...

thx.. made it serverside..

BUT

public function drawLeap(_type, positionx, positiony) {
echo("LOL");
putleaps(_type, positionx, positiony);
}

doesnt work on the clientside OR the...
Forum: New Scripting Engine (GS2) 05-17-2008, 10:31 PM
Replies: 20
Views: 2,413
Posted By Stryke
It says this: Function leapcontrol.drawLeap not...

It says this: Function leapcontrol.drawLeap not found in script of Weapon Board

and says this when i use findweapon:

Function Weapon -System/LeapControl.drawLeap not found in script of Weapon...
Forum: New Scripting Engine (GS2) 05-17-2008, 08:05 PM
Replies: 20
Views: 2,413
Posted By Stryke
Doesn't show the leaps. Weapon: Board ...

Doesn't show the leaps.

Weapon: Board
function onTimeout() {
if(onwater(player.x,player.y) && this.waterTimer == 0) {
findWeapon("-System/LeapControl").drawLeap(5,playerx,playery);
}...
Forum: New Scripting Engine (GS2) 05-17-2008, 07:37 PM
Replies: 20
Views: 2,413
Posted By Stryke
It's just an example, the actual code is in a...

It's just an example, the actual code is in a onTimeout().
My mistake. I'll edit that in first post.

function onTimeout() {
if(onwater(player.x,player.y) && this.waterTimer == 0) {
...
Forum: New Scripting Engine (GS2) 05-17-2008, 07:26 PM
Replies: 20
Views: 2,413
Posted By Stryke
putleaps function?

function onActionServerSide(pa,plx,ply) {
if(pa == "board") {
triggerclient("weapon",this.name,pa,plx,ply);
}
}

//#CLIENTSIDE
function onTimeout() {
if(onwater(player.x,player.y)...
Forum: New Scripting Engine (GS2) 05-17-2008, 12:06 AM
Replies: 8
Views: 1,697
Posted By Stryke
I tried: temp.dx = DragItem.x - player.x; ...

I tried:

temp.dx = DragItem.x - player.x;
temp.dy = DragItem.y - player.y;
player.dir = getdir(temp.dx, temp.dy);

It only works when the DragItem is far away from the player.

EDIT:...
Forum: New Scripting Engine (GS2) 05-16-2008, 11:53 PM
Replies: 8
Views: 1,697
Posted By Stryke
Player Direction moving to the direction of dropping object

Like in Era, your player's direction moves to the direction of the object that is to be dropped. How would I do this? I've tried these:

if(DragItem.y < player.y)player.dir = 0;
...
Forum: New Scripting Engine (GS2) 05-16-2008, 04:42 AM
Replies: 18
Views: 3,227
Posted By Stryke
Thanks. It worked like a charm. New Q: ...

Thanks. It worked like a charm.

New Q:

Is there anyway to make the hint variable appear faster?
Forum: NPC Scripting 05-16-2008, 03:59 AM
Replies: 45
Views: 10,004
Posted By Stryke
My first programming language was Game Maker....

My first programming language was Game Maker. Helped me heaps in learning GS2.
Forum: New Scripting Engine (GS2) 05-13-2008, 01:26 AM
Replies: 2
Views: 1,524
Posted By Stryke
Works fine, solved. Thanks!

Works fine, solved. Thanks!
Forum: New Scripting Engine (GS2) 05-13-2008, 12:50 AM
Replies: 2
Views: 1,524
Posted By Stryke
triggerserver for Level NPCs/Classes?

How do I increase a player's amount of gralats if I can't use triggerserver on a Level NPC joined with a class? This is for a shop script.
Showing results 101 to 125 of 151

 
Forum Jump

All times are GMT +2. The time now is 08:02 PM.


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