Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::LUA

Quests::LUA Section regarding LUA scripts, help, questions, answers

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-23-2015, 09:17 AM
silvergrin46
Fire Beetle
 
Join Date: Jan 2015
Posts: 9
Default This is an example of a script I am trying to convert from perl to lua

To be stored in global/spells/spellid.lua

The spell is Targettype 6 (self) and when cast is supposed to spawn an NPC.


sub EVENT_SPELL_EFFECT_CLIENT {

$ClientID = $entity_list->GetClientByID($caster_id);

my $x = $ClientID->GetX();
my $y = $ClientID->GetY();
my $z = $ClientID->GetZ();
my $h = $ClientID->GetHeading();

quest::spawn2(1079,0,0,$x+5,$y+5,$z,$h);


} #Close event
Reply With Quote
 

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