Fabled spawn code
On my server, I am getting rid of the old /camp out to repop zone. I deleted all PH so named are the only one in their spawn table. Now, instead of fabled sharing a spawn, I want to make it so that once you kill the named, you have a 5% chance of making its death spawn the fabled version. (right now it is set to 70% for testing below) Here is my script. Please tell me why its not working. Also, is there a way I can code it so that it /Emotes something to the server the first time it has been killed? Thanks!
Code:
|
Did you use a SQL query or edit the mobs out by hand?
looks like you are missing a close bracket Code:
sub EVENT_DEATH{ Code:
sub EVENT_DEATH{ sorry I'm not much help :) |
Syntax-wise, you have an extra opening parenthesis and a missing closing curly bracket. This is a syntactically correct version:
Code:
Code:
D:\temp>perl test.pl If it terminates with no messages, you know your syntax is good. |
ok, derision's works, I think I need 6 numbers in the spawn loc instead of 3 to spawn the fabled, if I add in 0, 0, 0 to the back of the spawn loc it adds him under the world.
Code:
sub EVENT_DEATH |
http://www.eqemulator.net/wiki/wikka...=QuestTutorial
quest::spawn2(npc_type,grid,guildwarset,x,y,z,head ing) - Spawn "npc_type" on "grid" with "guildwarset" (use 0) at "x","y","z" facing "heading". As for the "first", use a quest global. |
Where would you find what "grid" to use?
Can you give me an example of the quest global? |
The grid is set up by you. If you don't want him to walk, use 0.
Quest globals are on the bottom of that page I just linked. |
k thanks.
the global section is sort of gibberish, its easier to deconstruct or manipulate existing, but ill look elsewhere. Thanks for the grid tip, though. Works. |
All kinds of examples if you have the peq quests library. Take a look at any elemental zone and PoK
|
If you mean the PEQ editor, yeah , ill try to install that later. Looks pretty complex itself.
|
you can increase the zone autoshutdown delay to something greater than 5000ms or you could simply statically load the zones.
I assume you are only doing this on fabled as there are a ton of named with PH spawns otherwise. And giving the named a 100% spawn? so instead of repopping the zone, i go from zone to zone killing everything and coming back at the scheduled respawn time. Finally, no he is not talking about the peq editor. |
Quote:
No, im doing it on all named spawns in dungeons at least. Its way more fun to run through a zone in an hour and slay everything. There is nothing fun about /camping to repop a zone. If you really want to camp the fabled, yeah, i guess come back later, but its more of a bonus encounter. Can you tell me what he IS talking about? I googled it and no results. dumb it down with a download link for us newbs. |
You know the quests folder in your server directory full of a bunch of perl files? Where did it come from? peq...
http://projecteqquests.googlecode.com/svn/trunk/quests |
Ok, ill dig through there and try to find something similar to what i'm looking for. Thanks
|
Hey bodi, hang in there, you'll get it.
Here's where I first learned how to use quest globals: http://projecteqquests.googlecode.co...iles_Thrall.pl You'd have to have complied your server with bots to play around and see it working in game though. |
All times are GMT -4. The time now is 12:27 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.