Group Teleport in ToFS.
Sadly, I couldn't mirror the functionality of checking one's cursor for a key item at initial entry. Code should be like this:
$client->CastToClient()->GetInv().GetItem(30) == 20033 However, the method GetInv() was returning perl runtime errors. This is nearly an exact replica of the code found in doors.cpp line 211 Code:
const ItemInst *lockpicks = sender->GetInv().GetItem(SLOT_CURSOR); I use a 40 meter range verification from the location of the player who has the key (mainly because getting the door's location was kind of annoying via script). Put this in your quests\frozenshadow\player.pl file (probably will have to create it). Code:
#Tower of Frozen Shadow Group-Based Teleporting on key usage by Shin Noir. |
Thanks, I added this to the PEQ repo with an added item check.
|
cavedue this is what i made up for teleports from bazaar zone
Translocator_Blue.pl sub TL { movepc(1213.00,921.00,3.28); } } movepc(88.00,265.00,36.00); } } Translocator_Red.pl sub TL { movepc(1212.00,-891.00,3.28); } } movepc(261.64,-91.47,36.00); } } click on the circle at your feet it'll teleport ya ----------------------------- for guildlobby High_Priest_Of_Luclin.pl #generic soulbinder quest sub EVENT_SAY { plugin::soulbinder_say($text); } sub EVENT_SPAWN { $x = $npc->GetX(); $y = $npc->GetY(); quest::set_proximity($x - 90, $x + 90, $y - 90, $y + 90); } sub EVENT_ENTER { quest::signal(202273,5); #Qadar } High_Priestess_Of_Luclin.pl #generic soulbinder quest sub EVENT_SAY { plugin::soulbinder_say($text); } sub EVENT_SPAWN { $x = $npc->GetX(); $y = $npc->GetY(); quest::set_proximity($x - 90, $x + 90, $y - 90, $y + 90); } sub EVENT_ENTER { quest::signal(202273,5); #Qadar } |
Great contribution! Good work.
|
All times are GMT -4. The time now is 03:58 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.