EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Some pets in Plane of Sky (https://www.eqemulator.org/forums/showthread.php?t=28224)

nilbog 05-17-2009 01:38 PM

Thanks a lot for posting the source fix for this issue Congdar. From everything I remember from the 1st time I went to airplane, till I quit playing live, necro and mage pets were wisps and djinni.

I took a while one day and fixed the pets using scripts.. and I have to say, it felt like a cheap workaround. Using the timer method, it still has a delay till everything looks right. My method involved creating 2 new illusion spells, wisp and djinn.

heres illusion code for skeleton pet, if it might help anyone w/ anything else.

Code:

sub EVENT_DEATH{
quest::say("Sorry to have failed you, oh Great One.");
 }

sub EVENT_SPAWN {
 quest::say("At your service Master.");
 $mobzone = $npc->GetZoneID() ;
 if ($mobzone == 71) {
 quest::settimer(1,0);
}
}

sub EVENT_TIMER {
if($timer eq "1") {
$skel = $entity_list->GetMobByNpcTypeID(614);
if ($skel) {
      $wisp = $skel->CastToNPC();
$npc->CastSpell(8450,$npc);
quest::stoptimer(1);
}
}
}

Thanks again Congdar!

Dibalamin 05-17-2009 01:44 PM

I PM'd you my email Congdar, drop me a line there and I can send you the blocked_spells table...me and queries don't mix.

cavedude 05-17-2009 05:48 PM

Would you mind making that SQL public? I was meaning to do it myself one day but if you've already got it done, then no need to reinvent the wheel.

Going way back to the original code. From a content standpoint it is correct. Before going into SVN, a simple rule can be added to disable it if anybody doesn't want their airplane changed, no big deal. (I can understand that and agree with that.) Now, I do believe you have a technical issue which KLS would know more about. I believe specifying the zoneid may not work once the instancing stuff hits trunk. But, again you'll need to clarify with KLS.

Dibalamin 05-17-2009 06:16 PM

It isn't complete yet, few more spells need blocked, but my eyes started crossing after doing #findspell over and over and over.

Keep in mind, this SQL will block all (I think) forms of teleportation from the plane of sky including gate. Leaving the parachute the only way to leave the plane. As well as coth. Alter plane sky will still function by teleporting you to the first island.

I don't think I blocked Lev spells yet.

http://www.stormrunner.net/download/blockedspells.sql

Congdar 05-19-2009 09:28 PM

OK, here it is. The Plane of Sky and all its quirkiness: http://mysite.verizon.net/drexxell/eq/planeofsky.html
After looking around a bit, I found that the delay with the perl changing the pet appearance could be fixed.

in \zone\pets.cpp the second to the bottom line in Mob::MakePet()
Code:

change

        entity_list.AddNPC(npc);

to

        entity_list.AddNPC(npc, true, true);

in \quests\airplane\ here is player.pl cuz buffs are stripped when players enter Sky
Code:

############################################
# ZONE: Plane of Sky (airplane)
# LAST EDIT DATE: May 17, 2009
# VERSION: 1.0
# DEVELOPER: Congdar
#
# NAME: player.pl
#
# *** QUESTS INVOLVED IN ***
#
# Plane of Sky Quirkiness
#
# *** QUESTS AVAILABLE TO ***
#
# All Players
#
############################################

sub EVENT_ENTERZONE
{
    $client->BuffFadeAll();
}
#END of FILE Zone:airplane  ID:player.pl

Necromancer and Shadowknight pets appear as normal when zoning into Plane of Sky, but if summoned when in the zone they appear as a Pink Will-o-Wisp
Now i'm only going to do this for one(sorry CD) Necromancer/Shadowknight pet, but here's the list of all Necromancer/Shadoknight pet npc id's from peq npc_types table. The id should probably be used for the perl file name since the name 'skel_pet_1_' etc. changes to 'PCName`s Pet'
I'm sure the Necromancer/Shadowknight isn't going to summon up thier lowest level pets for fighting in Sky, but if they did they need to behave the same way.

614.pl
615.pl
616.pl
617.pl
618.pl
619.pl
620.pl
621.pl
622.pl
623.pl
624.pl
625.pl
626.pl
627.pl
628.pl
629.pl
630.pl
631.pl
632.pl
633.pl
634.pl
663.pl

When the 66+ Titanium and SoF Necromancer/Shadowknight pets get added, the perl files will need to be created for thier id but they aren't in the database yet.

skel_pet_72
sk_pet_73
skel_pet_75
skel_pet_77
sk_pet_78_Rk1
sk_pet_78_Rk2
sk_pet_78_Rk3
skel_pet_80

The highlighted parts need to be changed for each .pl file.
Code:

############################################
# ZONE: Plane of Sky (airplane)
# LAST EDIT DATE: May 17, 2009
# VERSION: 1.0
# DEVELOPER: Congdar
#
# *** NPC INFORMATION ***
#
# NAME: skel_pet_1_
# ID: 614
# TYPE: Pet
# RACE: 367 (New Skeleton Model)
# LEVEL: 1
#
# *** QUESTS INVOLVED IN ***
#
# Plane of Sky Quirkiness
# Necromancer/Shadowknight Pets become a Pink Will-o-Wisp
#
# *** QUESTS AVAILABLE TO ***
#
# All Necromancer/Shadowknight Pets
#
############################################

sub EVENT_SPAWN
{
    quest::npcrace(69);
    quest::npctexture(1);
    quest::npcsize(4);
}
#END of FILE Zone:airplane  ID:614 -- skel_pet_1_

Magician pets appear as normal when zoning into Plane of Sky, but if summoned when in the zone they appear as a Female Djinn
Now i'm only going to do this for one(sorry CD) Magician pet, but here's the list of all Magician pet npc id's from peq npc_types table. The id should probably be used for the perl file name since the name 'skel_pet_1_' etc. changes to 'PCName`s Pet'
I'm sure the Magician isn't going to summon up thier lowest level pets for fighting in Sky, but if they did they need to behave the same way.

552.pl
553.pl
554.pl
555.pl
556.pl
557.pl
558.pl
559.pl
560.pl
561.pl
562.pl
563.pl
564.pl
565.pl
566.pl

When the 66+ Titanium and SoF Magician Air Elemental pets get added, the perl files will need to be created for thier id but they aren't in the database yet.

SumAirR17
SumAirR18

The highlight parts need to be changed for each .pl file.
Code:

############################################
# ZONE: Plane of Sky (airplane)
# LAST EDIT DATE: May 17, 2009
# VERSION: 1.0
# DEVELOPER: Congdar
#
# *** NPC INFORMATION ***
#
# NAME: SumAirR2
# ID: 552
# TYPE: Pet
# RACE: 75 (Elemental)
# LEVEL: 6
#
# *** QUESTS INVOLVED IN ***
#
# Plane of Sky Quirkiness
# Magician Air Elemental Pet becomes a Female Djinn
#
# *** QUESTS AVAILABLE TO ***
#
# All Magician Air Elemental Pets
#
############################################

sub EVENT_SPAWN
{
    quest::npcsize(5);
    quest::npcrace(126);
}
#END of FILE Zone:airplane  ID:552 -- SumAirR2

There are a lot of spells that are blocked in the Plane of Sky. You can read about them in the link at the top of this post. Here's the dump from the peq blocked_spells table for zone 71 (Plane of Sky) Credit to Dibalamin for supplying some of them. These are spells through SoF level 80.
This dump does not include the one Call of the Hero that was already in the table.
Code:


-- MySQL dump 10.11
--
-- Host: localhost    Database: peq
-- ------------------------------------------------------
-- Server version        5.0.67-community-nt

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Dumping data for table `blocked_spells`
--
-- WHERE:  zoneid=71

LOCK TABLES `blocked_spells` WRITE;
/*!40000 ALTER TABLE `blocked_spells` DISABLE KEYS */;
INSERT INTO `blocked_spells` VALUES (26,2028,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(27,2432,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(28,2433,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(29,2734,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(30,2944,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(31,2945,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(32,530,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(33,531,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(34,532,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(35,533,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(36,534,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(37,535,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(38,536,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(39,537,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(40,538,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(41,550,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(42,551,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(43,552,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(44,553,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(45,554,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(46,555,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(47,556,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(48,557,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(49,558,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(50,1398,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(51,1434,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(52,1438,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(53,1440,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(54,1517,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(55,2020,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(56,1326,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(57,1516,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(58,2021,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(59,2029,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(60,2030,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(61,2031,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(62,561,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(63,562,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(64,563,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(65,564,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(66,565,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(67,566,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(68,567,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(69,568,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(70,1399,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(71,1418,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(72,1423,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(73,1425,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(74,2420,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(75,1334,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(76,1336,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(77,1337,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(78,1338,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(79,1339,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(80,1371,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(81,1372,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(82,1373,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(83,1374,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(84,1375,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(85,1422,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(86,2022,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(87,2023,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(88,2024,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(89,2025,1,71,0,0,0,0,0,0,'You cannot cast that here.',''),(90,58,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(91,315,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(92,316,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(93,335,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(94,336,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(95,395,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(96,397,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(97,398,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(98,399,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(99,401,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(100,402,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(101,403,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(102,496,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(103,497,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(104,498,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(105,569,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(106,570,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(107,571,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(108,573,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(109,574,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(110,575,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(111,620,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(112,621,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(113,622,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(114,625,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(115,626,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(116,628,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(117,629,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(118,630,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(119,632,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(120,633,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(121,634,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(122,1400,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(123,1402,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(124,1404,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(125,1671,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(126,1672,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(127,1673,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(128,1675,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(129,1676,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(130,1677,1,71,0,0,0,0,0,0,'Unseen forces prevent you from doing that.','description'),(177,12582,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(176,12581,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(175,12580,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(174,12516,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(173,12515,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(172,12514,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(171,11552,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(170,8258,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(169,8257,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(168,8256,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(167,7867,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(166,6228,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(165,6227,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(164,6226,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(163,4554,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(162,4553,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(161,4552,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(160,4460,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(159,3870,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(158,3869,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(157,3807,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(156,3649,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(155,3640,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(154,3639,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(150,3635,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(153,3638,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(152,3637,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(151,3636,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(149,3634,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(148,3633,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(147,3288,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(145,3286,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(144,4566,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(143,4565,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(142,4564,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(141,3270,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(146,3287,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(140,3269,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(139,3268,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(138,12648,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(137,12647,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(136,12646,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(135,4827,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(134,4826,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(133,3285,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(132,3284,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(131,3283,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(178,12765,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(179,12766,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(180,12767,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(181,12829,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(182,36,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(183,541,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(184,542,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(185,543,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(186,544,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(187,545,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(188,546,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(189,547,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(190,548,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(191,1320,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(192,1325,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(193,1354,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(194,1417,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(195,2026,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(196,2027,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(197,2028,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(198,2418,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(199,2423,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(200,2428,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(201,3046,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(202,3183,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(203,3795,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(204,4963,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(205,5734,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(206,6176,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(207,6181,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(208,8238,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(209,8968,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(210,10876,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(211,10879,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(212,10882,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(213,11654,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(214,2425,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(215,2430,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(216,3134,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(217,3180,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(218,4965,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(219,5732,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(220,6178,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(221,6183,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(222,6836,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(223,8236,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(224,8966,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(225,10875,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(226,10878,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(227,10881,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(228,10991,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(229,11984,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(230,2419,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(231,2424,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(232,2429,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(233,2184,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(234,3792,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(235,4966,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(236,5731,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(237,6179,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(238,6184,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(239,8235,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(240,8965,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(241,9951,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(242,9954,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(243,9957,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(244,11981,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(245,2421,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(246,2426,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(247,2431,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(248,2943,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(249,3181,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(250,3243,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(251,3833,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(252,4964,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(253,5735,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(254,6177,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(255,6182,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(256,8239,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(257,8969,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(258,10874,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(259,10877,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(260,10880,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(261,11983,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(262,666,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(263,3849,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(264,8771,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(265,2931,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(266,1322,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(267,1264,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(268,1199,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(269,2293,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(270,2294,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(271,2295,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(272,2296,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(273,2297,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(274,2298,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(275,2299,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(276,2300,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(277,2301,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(278,2302,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(279,2303,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(280,2304,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(281,3612,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(282,3789,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(283,3790,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(284,3812,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(285,11204,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(286,11504,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(287,11505,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(288,1826,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(289,3782,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(290,1265,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(291,3615,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(292,602,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(293,603,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(294,604,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(295,605,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(296,606,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(297,607,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(298,608,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(299,609,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(300,610,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(301,611,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(302,1566,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(303,1567,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(304,1626,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(305,1627,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(306,1628,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(308,1737,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(309,1738,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(310,1739,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(311,2183,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(312,2558,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(313,2771,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(314,3244,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(315,354,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(316,375,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(317,528,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(318,739,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(319,872,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(320,35,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(321,6093,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Gate spells in Plane of Sky'),(323,2272,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(324,3292,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(325,3293,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(326,3294,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(327,5110,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(328,5111,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(329,12759,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(330,12760,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(331,12761,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky'),(332,480,1,71,0,0,0,0,0,0,'You cannot cast that here.','No Swarm Pets in Plane of Sky');
/*!40000 ALTER TABLE `blocked_spells` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2009-05-20  1:09:22


trevius 05-19-2009 09:52 PM

Is there any reason why the default.pl couldn't be used like I mentioned to make all of the pet stuff work with 1 simple script? I posted an example. Maybe there is something I am not thinking about. Here it is again:

default.pl
Code:

sub EVENT_SPAWN {

#75 Elemental
#209 Earth Elemental
#210 Air Elemental
#211 Water Elemental
#212 Fire Elemental

  if ($race == 75 && $texture != 3 || $race == 209 || $race == 211 || $race == 212)
    quest::echo(15,"You can only summon Air pets here");
    quest::depop();
  }

  if ($race == 75 && $texture == 3 || $race == 210) {
    #set your timer and do the race change stuff
  }

}

Can probably just do similar stuff like that for all scenarios I bet. If needed, I am sure it wouldn't be hard to check to make sure it is a client's pet before depoping or changing it. I dunno if texture is a variable yet or not, but if not, I think "my $texture = $npc->GetTexture();" should work.

Congdar 05-19-2009 10:01 PM

because the player burns the mana for casting the pet if you do it that way.

trevius 05-19-2009 10:21 PM

Ahh, I see. There is probably a way to correct that (at least most of the way) by using some of the following commands:

GetActSpellCost(spell_id, cost)
CastingSpellID()
GetMana()
GetMaxMana()
SetMana(amount)

But most likely it would take a sub EVENT type to allow what you would be needing to do. A sub EVENT_CASTING would do the trick I think. That and/or a new function that could actually check certain fields of the spell table and get their values would be sweet. Then, you would just check for those type of spells and do an interrupt on them if they are cast. Then, you would just use the new command to do what you were wanting to do in the first place with this line:

Quote:

if(strncmp(spells[spell_id].teleport_zone, "SumAir", 6) != 0)
Accept you would be able to do it with Perl instead and save a lot of hassle.

Congdar 05-19-2009 11:30 PM

I think adding the new sub EVENT is the hassle, so I added the spells to the blocked_spells table instead.


All times are GMT -4. The time now is 02:33 AM.

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