Was about to paste this when you apparently resolved your issues. Your quest still had the brackets in the wrong lines for your hasitem check and text responses to work properly. I adjusted that, I also did the => fix, and I removed all of the ;s and --s in your quest::say's, because you have to be careful when using certain characters in there, and I haven't personally used either of those in that way. So, I thought it might have something to do with your issue, but apparently not.
Here is the final quest after my edits: Code:
sub EVENT_SAY { And, whenever I am working on a quest, I remove 1 section at a time until I narrow it down to a certain section and then I remove a line at a time until it works. Then add them in again until it breaks and fix the line that is causing the break to happen. |
Quote:
I belive its not the operator you thing it is. rather than "greater or equal" it reads something like "fetch from item slot" - basilcy its not an operator at all (from my logical understanding) regading mob spawns. here is an easy sample for you to work with pulled from one of my quests Code:
Enjoy =) |
Thanks Trevius. I replaced my current version with yours just to be on the safe side, so your work wasn't in vain. It also helped me to see a better way to format. Thanks again.
|
Quote:
Quote:
|
Chaos, I modified your spawn script and everything works great. I now have the first part of a larger npc war script finished. Just seeing all those guards spawn to reinforce the kingdom when I turned in the item to the king brought a tear to my eye :wink:
Thanks again for all the help! |
Quote:
. |
Okay, one thing I didn't expect was for the newly spawned mobs to disappear when I log off. If I want them to remain spawned until they are killed by a player raid or an npc war, is there a way to do that? The goal of the npc spawn is to provide reinforcements against members of another faction coming in and taking over the city in an attempt to retake the item I just turned in to the king. If they despawn when I log from my account, then the quest is functionally useless to my storyline. I want to make it so that they remain there to guard the realm against players of a different faction who are looking for the item I just turned into the king. If another faction does come in, kills all the npcs (except for the king), loots a specified item from one of the named npcs, and turns it into to the king, the king then yields the item they came for (via another turn-in), and all his reinforcements despawn, never to spawn again until and unless someone else turns in the same item to him.
How do I make the spawns stay put? Would that be a quest::spawn rather than a quest::spawn2? Something else? Also, once I have them there, I want to have the second item turn-in trigger their despawn. Any ideas on this? |
the server has no way to store any data about something what is not a part of default spawn DB
you may want to turn on the Persistant State rule in Variables section of the DB. but no garantee that server will record and reproduce CURRENT state for mosb that are not part of DB spawns basicly if you looking for soemthing like a GM event where mobs become persistant, you want to actualy add them to regular spawn tables and turn then on and off as requred. of course it would have to be done by hand, cuase there no conection betwen quest scripts and DB NOTE: once Persistant State has been turned on ANY changes you do Db will auto crash the server untill Persistant State turned off. As far as despawning goes, there is a comand quest::depop basicly once item turned in to quest NPC, npc will need to send a SIGNAL code command to each npc you want to dispawn, and each of those npcs will execute depop comand |
Quote:
Quote:
|
well its nice to know that Persistant State rule works like this .
Rememebr however - you will not be able to edit DB as long as it turned on. I mean you can edit it, but then the server won't boot up cuase Persistant State requres for Db to remain IDENTICAL to what it was before server was shot down in order to restore it to exactly how it was I once did that.. I spend 3 days trying to figure out why server is not booting up anymore =) |
Quote:
|
well from what i know its not all parts of the DB its some parts which would have a direct impact of persistant data stored - like walking grid for a mob
|
All times are GMT -4. The time now is 02:02 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.