View Single Post
  #1  
Old 08-03-2017, 01:01 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
GScript for Dummies Guide to GS2 question.

I'm reading the guide on GS2 and near the end he or she mentions objects. This part has me lost. What exactly is happening here?
PHP Code:
temp.controlnpc findnpc("Control-NPC");  //Creates an object references the Control-NPC
this.player_data temp.controlnpc.player_data;  //Copies data from the Control-NPC to the current NPC.
temp.controlnpc.onCreated(); //Executes the onCreated function through the Control-NPC 
I can only guess what Control-NPC is. I see it listed on the server I am practicing on, but I have very limited rights so I can't open it up. I assume there is code inside, but at this point I am only guessing what this script is referencing.
__________________
Save Classic!
Reply With Quote