Jump to content
  • 0

Command. gm npc, or known script to respawn castle chests?


Xanthor

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   7
  • Joined:  11/07/15
  • Last Seen:  

I was wondering if there is a command, or script, or gm npc script that would allow me at any time to make the server at any time respawn all castle treasure chests. Reason for this, I been making lots of changes and tweaks and found out that after reboot all spawned chests vanish till next day. Bringing the clock back isn't an answer, tried it and caused login issues where everyone including myself was rejected from server till reboot, which again removed all chests. I did several searches and only things that came up were spawning chests once a week or changing times. I looked at the code itself that states there's a gm menu but saw nothing in any of the scripts.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

npc/guild/agit_main.txt#L1132

 

change to


// Treasure Room Spawn Template
//============================================================
-	script	Gld_Trea_Spawn::Gld_Trea_Spawn	-1,{
	end;

OnInit:    // <---------------- ADD THIS LINE
OnClock0001:
	// Do nothing if this script is the template.
	if (strnpcinfo(1) == "Gld_Trea_Spawn") end;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...