View Single Post
  #5  
Old 12-10-2004, 08:39 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

You could make a quest command that retrieves the zoneid and save coords and then implement it, like:
Code:
sub EVENT_SAY
{
  $zoneid = quest::GetZoneID($text);
  $zonex = quest::GetZoneX($zoneid);
  $zoney = quest::GetZoneY($zoneid);
  $zonez = quest::GetZoneZ($zoneid);
  $client->MovePC($zoneid, $zonex, $zoney, $zonez);
}
However you'd have to write the C++ implementation for it (too busy to write it myself atm, if I have time and you havent written it though i might get to it)
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote