Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2004, 06:11 AM
jimbox114
Hill Giant
 
Join Date: Jun 2004
Posts: 231
Default Simple teleport player script for newcomers

Been wanting to help out the community some, we all know I have taken more then my fair share. Anyways here is a simple script to get a mob to teleport players around. Just make sure you change the numbers to #zoneid,X,Y,X when your doing it. I have noticed many of your servers don't make use of this command, but it can really add to the usefulness of a zone, mainly alot of your planes of power zones. Im sure most of you know alot of your zones like potimeb, solrotower, potorment, etc have area's only acceible by porting to them. On live server this usually is done by killing a mini_boss who spawns a mob who will move you (or your group) by hailing them. Anyways hope this helps some people out.

Code:
sub EVENT_SAY
{
 if ($text=~ /Hail/i){quest::say("Say [ready] if you want me to move you somewhere");}
 if ($text=~ /ready/i){quest::say("Very well, off you go then."); quest::movepc(219,-7,5,189);}
}
If you want to spawn a quest mob from your database here is a sample of a script you could use. Give this script to say Big_Boss_Mob. Questspawn works like quest:spawn(npcid, 0,0,x,y,z) You will have to have a premade mob in your database somewhere with a quest script similar to the above to get this to work. Needless to say this is generic text I have for the example, I would obviously change it to something less generic. I am not actually 100% sure what the 0,0 after the npcid is for, I know from testing it you will still spawn a working mob with 0. So if yo dont know what it is, I recommend just leaving it 0.
Code:
sub EVENT_DEATH 
{ 
  quest::shout("ARG you killed me, now you have freed A_Mob from my evil clutches"); 
  quest::spawn(281227,0,0,82,68,184);
}
You can get the Zoneid's out of the eqemu guidebook, which is stickied in one of those help forums.
Reply With Quote
  #2  
Old 08-10-2004, 06:14 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Those 0's after the npcid are for guildwars server NPCs, if I recall.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #3  
Old 08-10-2004, 06:21 AM
sotonin
Demi-God
 
Join Date: May 2004
Posts: 1,177
Default

arg. the cluttered code hurts my head. =D

Code:
sub EVENT_SAY { 
	if ($text=~ /Hail/i){
		quest::say("Say [ready] if you want me to move you somewhere");
	}
	if ($text=~ /ready/i){
		quest::say("Very well, off you go then.");
		quest::movepc(219,-7,5,189);
	}
}
might wanna get in the habit of formatting it so it's more readable and doesn't run together so much.
Reply With Quote
Reply


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 05:29 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3