Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 02-01-2007, 05:19 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I've always done
PHP Code:
  temp.npc putnpc2(params[1],params[2],"join(\"blah!\");");
  
temp.npc.owner player.account;
  
temp.npc.attr[1] = params[3]; 
You could also save the id of temp.npc for later editing .
Reply With Quote
  #17  
Old 02-01-2007, 12:45 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
HTML Code:
with(putnpc2(this.x, this.y, "join object;"))
{
  this.curMode = "started...? lol";
}
Always, and forever.
Reply With Quote
  #18  
Old 02-01-2007, 11:57 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I never knew that putnpc2() returned the npc object >_>
Hurray for new things.

You could even add a putnpc3() that uses a class name to join as the parameter instead of the actual script :P
with (putnpc3(this.x, this.y, "classname")) {}
For the lazy people like me.
__________________
Reply With Quote
  #19  
Old 02-02-2007, 12:19 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
putnpc3 doesnt exist?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #20  
Old 02-03-2007, 03:24 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Uh no, that was speculation.
__________________
Reply With Quote
  #21  
Old 02-03-2007, 04:16 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
PHP Code:

function putnpc3(x,y,classname) {
    return 
putnpc2(x,y,"join(\"" classname "\");");

__________________

Coming soon (Hopefully:P)
Reply With Quote
  #22  
Old 02-03-2007, 06:17 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Yea you could do that easily enough, but having built in stuff is cooler than joining classes all the time :P
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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