Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Reseting a DbNPC (https://forums.graalonline.com/forums/showthread.php?t=134260733)

MrOmega 10-06-2010 08:01 PM

Reseting a DbNPC
 
Is there anyway to reset a DbNPC via script. Such as you can reset players by doing sendToRC( "/reset" ACCOUNT); How would one do this to a DbNPC?

fowlplay4 10-06-2010 08:03 PM

You might as well just use a class and a TStaticVar, and destroy and re-create it.

Something like this might work though..

PHP Code:

function resetDB() {
  
this.clearvars();
  
this.trigger("Created""");



MrOmega 10-06-2010 08:15 PM

I suppose that would work. Kinda shocked you can't reset DbNPCs though.

xAndrewx 10-06-2010 09:00 PM

What do you mean reset? o_O

cbkbud 10-06-2010 09:04 PM

Quote:

Originally Posted by xAndrewx (Post 1604535)
What do you mean reset? o_O

Right click a DB in the NPC list and click "reset" (try it on DB_NewBiz on Era perhaps). Warps it back to the original location, deletes flags, unjoins classes, triggers onCreated.

MrOmega 10-06-2010 09:07 PM

Eh, wrong terminology, it's not really a database, just an NPC I created


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

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