View Single Post
  #2  
Old 04-05-2004, 06:23 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

The best way to accomplish this would be to call a function on the server, and have it returned to perl. I was working on a good way to do this, but it kind of petered out. The way I have things now, I can get something like this to work:

Code:
sub EVENT_ITEM{
   if($item1==6016){
      $iname = sc::getItemName($item1);
      quest::say("Ooh, $iname - here's your reward!");
   }
}
The only problem is that there is a module.pm file that needs to be present, and there really should be another way to do this. I made some progress (no shared library, no "use module"). Eglin mentioned looking at how pickle does this (never got around to this, sadly). I'm going to take another whack at this in the next day or two, and see if I can come up with anything.
Reply With Quote