Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2011, 12:41 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

Well I thought I had this working but still no npc's showing up inside the instance. So now I am not sure if the instance is working at all. The npc was working just fine prior to changing the version number in npc_types and spawn2 tables.

What am I doing wrong?

Test Script
Code:
sub EVENT_SAY {
	my $group = $client->GetGroup();
	if ($text =~/Hail/i)
	{
	quest::say("Just say the word [group].");
	}
	if (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && $group) {
		quest::CreateInstance("crystallos", 1, 21600);
		quest::AssignGroupToInstance("crystallos"); 
		quest::MovePCInstance(446, "crystallos", -65, -200, -75);
        }
	elsif (($text =~/group/i) && $ulevel <= 79 && $hasitem{219532} && $group) {
		quest::say("Sorry but you are not strong enough for this quest come back when you have gained more experience.");
        }
	elsif (($text =~/group/i) && $ulevel >= 80 && !$hasitem{219532} && $group) {
		quest::say("Sorry but you do not have the key needed to enter the zone for this quest. Seek out the Relic Gatekeeper, she might be able to help you.");
        }
	elsif (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && !$group) {
		quest::say("Sorry but you are not in a group. Find a group then try again.");
        }
}
NPC that is suppose to go into the instance
Code:
INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`) VALUES (700110, 700011, 100);
INSERT INTO `spawngroup` (`id`, `name`, `spawn_limit`, `dist`, `max_x`, `min_x`, `max_y`, `min_y`, `delay`) VALUES (700110, '700110', 1, 0, 0, 0, 0, 0, 0);
INSERT INTO `spawn2` (`id`, `spawngroupID`, `zone`, `version`, `x`, `y`, `z`, `heading`, `respawntime`, `variance`, `pathgrid`, `_condition`, `cond_value`, `enabled`) VALUES (700011, 700110, 'crystallos', 1, -996.799988, -351.299988, -426.399994, 8.900000, 1200, 0, 0, 0, 1, 1);
INSERT INTO `npc_types` (`id`, `name`, `lastname`, `level`, `race`, `class`, `bodytype`, `hp`, `gender`, `texture`, `helmtexture`, `size`, `hp_regen_rate`, `mana_regen_rate`, `loottable_id`, `merchant_id`, `npc_spells_id`, `npc_faction_id`, `adventure_template_id`, `trap_template`, `mindmg`, `maxdmg`, `npcspecialattks`, `aggroradius`, `face`, `luclin_hairstyle`, `luclin_haircolor`, `luclin_eyecolor`, `luclin_eyecolor2`, `luclin_beardcolor`, `luclin_beard`, `drakkin_heritage`, `drakkin_tattoo`, `drakkin_details`, `armortint_id`, `armortint_red`, `armortint_green`, `armortint_blue`, `d_meele_texture1`, `d_meele_texture2`, `prim_melee_type`, `sec_melee_type`, `runspeed`, `MR`, `CR`, `DR`, `FR`, `PR`, `Corrup`, `see_invis`, `see_invis_undead`, `qglobal`, `AC`, `npc_aggro`, `spawn_limit`, `attack_speed`, `findable`, `STR`, `STA`, `DEX`, `AGI`, `_INT`, `WIS`, `CHA`, `see_hide`, `see_improved_hide`, `trackable`, `isbot`, `exclude`, `ATK`, `Accuracy`, `slow_mitigation`, `version`, `maxlevel`, `scalerate`, `private_corpse`, `unique_spawn_by_name`) VALUES (700011, 'Hyrdos, Guardian of Crystallos', NULL, 90, 530, 9, 26, 5500000, 2, 1, 6, 250, 500, 0, 750001, 0, 547, 79, 0, 0, 12000, 12000, 'SERrFTQMCNIDf', 250, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 2.5, 350, 350, 350, 350, 350, 0, 1, 1, 1, 6000, 0, 1, -75, 0, 750, 750, 750, 750, 750, 750, 750, 1, 0, 1, 0, 3, 20000, 0, 0, 1, 0, 100, 0, 0);
Reply With Quote
  #2  
Old 04-12-2011, 01:05 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

CreateInstance returns an instance ID.

That is what you should pass to AssignGroupToInstance and MovePCInstance instead of "crystallos".
Reply With Quote
  #3  
Old 04-12-2011, 02:28 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

Quote:
Originally Posted by lerxst2112 View Post
CreateInstance returns an instance ID.

That is what you should pass to AssignGroupToInstance and MovePCInstance instead of "crystallos".
Umm yeah, while I know what you mean with that statement my attempts to implement that lead to a zone loop back issue, same result I had before and complete failure.
Reply With Quote
  #4  
Old 04-12-2011, 03:41 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

Akkadius, that plugin worked flawlessly. Thank you for sharing that.
Reply With Quote
  #5  
Old 04-12-2011, 01:28 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by blackdragonsdg View Post
Well I thought I had this working but still no npc's showing up inside the instance. So now I am not sure if the instance is working at all. The npc was working just fine prior to changing the version number in npc_types and spawn2 tables.

What am I doing wrong?

Test Script
Code:
sub EVENT_SAY {
	my $group = $client->GetGroup();
	if ($text =~/Hail/i)
	{
	quest::say("Just say the word [group].");
	}
	if (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && $group) {
		quest::CreateInstance("crystallos", 1, 21600);
		quest::AssignGroupToInstance("crystallos"); 
		quest::MovePCInstance(446, "crystallos", -65, -200, -75);
        }
	elsif (($text =~/group/i) && $ulevel <= 79 && $hasitem{219532} && $group) {
		quest::say("Sorry but you are not strong enough for this quest come back when you have gained more experience.");
        }
	elsif (($text =~/group/i) && $ulevel >= 80 && !$hasitem{219532} && $group) {
		quest::say("Sorry but you do not have the key needed to enter the zone for this quest. Seek out the Relic Gatekeeper, she might be able to help you.");
        }
	elsif (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && !$group) {
		quest::say("Sorry but you are not in a group. Find a group then try again.");
        }
}
NPC that is suppose to go into the instance
Code:
INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`) VALUES (700110, 700011, 100);
INSERT INTO `spawngroup` (`id`, `name`, `spawn_limit`, `dist`, `max_x`, `min_x`, `max_y`, `min_y`, `delay`) VALUES (700110, '700110', 1, 0, 0, 0, 0, 0, 0);
INSERT INTO `spawn2` (`id`, `spawngroupID`, `zone`, `version`, `x`, `y`, `z`, `heading`, `respawntime`, `variance`, `pathgrid`, `_condition`, `cond_value`, `enabled`) VALUES (700011, 700110, 'crystallos', 1, -996.799988, -351.299988, -426.399994, 8.900000, 1200, 0, 0, 0, 1, 1);
INSERT INTO `npc_types` (`id`, `name`, `lastname`, `level`, `race`, `class`, `bodytype`, `hp`, `gender`, `texture`, `helmtexture`, `size`, `hp_regen_rate`, `mana_regen_rate`, `loottable_id`, `merchant_id`, `npc_spells_id`, `npc_faction_id`, `adventure_template_id`, `trap_template`, `mindmg`, `maxdmg`, `npcspecialattks`, `aggroradius`, `face`, `luclin_hairstyle`, `luclin_haircolor`, `luclin_eyecolor`, `luclin_eyecolor2`, `luclin_beardcolor`, `luclin_beard`, `drakkin_heritage`, `drakkin_tattoo`, `drakkin_details`, `armortint_id`, `armortint_red`, `armortint_green`, `armortint_blue`, `d_meele_texture1`, `d_meele_texture2`, `prim_melee_type`, `sec_melee_type`, `runspeed`, `MR`, `CR`, `DR`, `FR`, `PR`, `Corrup`, `see_invis`, `see_invis_undead`, `qglobal`, `AC`, `npc_aggro`, `spawn_limit`, `attack_speed`, `findable`, `STR`, `STA`, `DEX`, `AGI`, `_INT`, `WIS`, `CHA`, `see_hide`, `see_improved_hide`, `trackable`, `isbot`, `exclude`, `ATK`, `Accuracy`, `slow_mitigation`, `version`, `maxlevel`, `scalerate`, `private_corpse`, `unique_spawn_by_name`) VALUES (700011, 'Hyrdos, Guardian of Crystallos', NULL, 90, 530, 9, 26, 5500000, 2, 1, 6, 250, 500, 0, 750001, 0, 547, 79, 0, 0, 12000, 12000, 'SERrFTQMCNIDf', 250, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 2.5, 350, 350, 350, 350, 350, 0, 1, 1, 1, 6000, 0, 1, -75, 0, 750, 750, 750, 750, 750, 750, 750, 1, 0, 1, 0, 3, 20000, 0, 0, 1, 0, 100, 0, 0);
Refer to:

http://eqemulator.org/forums/showthread.php?t=32609


Code:
if (($text =~/group/i) && $ulevel >= 80 && $hasitem{219532} && $group) {
                plugin::SendToInstance("group", "crystallos", 1, -65, -200, -75, "grp", 21600);
        }
This requires checkout of the Plugins Repo SVN:

http://eqemulator.org/forums/showthread.php?t=32608
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:47 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3