Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #27  
Old 06-17-2012, 12:04 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I'm honestly not sure how much easier I can make this. More verbose perhaps?
  1. As the OP says, give the NPC-server proper rights to the folder where you'll store your levels and the folder where your template levels are stored.


  2. Upload the scripts in the archive attached to the OP, making these changes to the script InstanceManager before hitting "apply":
    • Change the temp path
    • Change the unstick path
    Note: Since it is a SCRIPT, the code for the InstanceManager goes into the NPC's SCRIPT.


  3. Create your instance class (e.g. "quest_instance") from the code in the OP, adjusting it for your situation.


  4. Add your instance type to the script of the InstanceManager, using the commented-out easter map instance type as an example (as stated in OP).


  5. Copy the code in the OP for creating a new instance, adapt it into your code. For example, a door that warps players to a new quest instance:


Congratulations, you're now using instances.


__________________
Reply With Quote
 

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 12:59 AM.


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