Graal Forums  

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

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: SmeewN
Forum: NPC Scripting 01-15-2008, 09:47 PM
Replies: 15
Views: 2,560
Posted By SmeewN
What's id and owner?

What's id and owner?
Forum: NPC Scripting 01-12-2008, 08:36 PM
Replies: 15
Views: 2,560
Posted By SmeewN
Thanks, got it to work, awesome. Can you...

Thanks, got it to work, awesome.

Can you pass variables to the class?

like putting:
temp.data.myvar = 0;

would make it accessable to the class?
Forum: NPC Scripting 01-12-2008, 08:17 PM
Replies: 15
Views: 2,560
Posted By SmeewN
function onActiongotsplaced() { temp.data =...

function onActiongotsplaced()
{
temp.data = putnpc2(player.x, player.y, "join(\"object\");");
temp.data.chat = "I was just spawned!";
temp.data.setimg("sn_iconblank.gif");
}
...
Forum: NPC Scripting 01-12-2008, 07:46 PM
Replies: 15
Views: 2,560
Posted By SmeewN
You don't -need- a weapon, you can use an NPC...

You don't -need- a weapon, you can use an NPC also >.> I'm having trouble with the "putnpc2" script.
Forum: NPC Scripting 01-12-2008, 07:36 PM
Replies: 15
Views: 2,560
Posted By SmeewN
Classes help

I am having trouble placing classes, can someone give me a good example how to putnpc2? :confused:

function onCreated()
{
setimg("snicon_blank.gif")
timeout = 2;
}
function ontimeout()
{...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT +2. The time now is 05:07 PM.


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