Project 1999

Project 1999 (/forums/index.php)
-   Resolved Issues (/forums/forumdisplay.php?f=14)
-   -   NPC Spawn Issue: Slansin (Erudin Palace) (/forums/showthread.php?t=82496)

Nirgon 08-24-2012 04:03 PM

Slansin (Erudin Palace)
 
http://i46.tinypic.com/261zvaw.jpg

Both of these should not be up at the same time:

http://wiki.project1999.org/index.ph...t_Potion_Quest

And see Nilbog's comment on the issue here

Quote:

Originally Posted by nilbog (Post 77944)
Fixed, pending update.

This took a while..

-both slansins created with their appropriate factions and quest text
-they are spawnable via quest triggers with Toresian
-their quest turn-ins will yield the proper faction
-giving real slansin the potion will depop him
-giving the fake slansin the potion will not depop him
-killing the fake slansin will make the real slansin pop in the back room. he will then path to the counter as usual.
-there can be only 1 slansin!

There should only be 1 up at any given time.

nilbog 08-26-2012 05:55 PM

Fixed, pending update.

In case anyone is curious how quests work, here is how I made this one. If you're reading and can write perl at least as well as I can, then you can write eqemu quests :P


Controller handling initial spawns and signal from $real if killed by other means than potion turn-in.


#nilbog


sub EVENT_SPAWN
{

quest::settimer("slansin",5);
}

my $fake = 23001;
my $real = 1798;
my @slansins = ($fake,$real);

sub EVENT_TIMER
{
if ($timer eq "slansin")
{
$spawnchance = int(rand(100));
quest::stoptimer("slansin");
if ($spawnchance<20)
{
quest::spawn2($fake,0,0,575,683,-13,78);
}
elsif (($spawnchance>=20)&&($spawnchance<100))
{
quest::spawn2($real,0,0,575,683,-13,78);
}
}
}

sub EVENT_SIGNAL
{
foreach $slansin (@slansins)
{
if ($entity_list->GetMobByNpcTypeID($slansin))
{
return 1;
}
}
quest::settimer("slansin", 7200);
}

Pasting this screwed up the formatting; oh wells.

Nirgon 08-27-2012 11:33 AM

I did the epic quest lines on a server that lasted about 3 weeks just cuz.

The shaman spirit that spawns in Eruds crossing that leads you around is a fun one to do with the pathing tables and the spawn/respawn thing you mentioned above.

Do you have something where you can copy and paste from that supports [code] tags? We use that @ work for things like commonly used sql statements and scripts.


All times are GMT -4. The time now is 08:39 PM.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.