View Single Post
  #1  
Old 01-04-2004, 04:35 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default Perl Question - Returning values from parser

Is there a way to use a function in perl that refers to one in parser.cpp and have parser return a value to perl?

For example: quest::say(" I have $somestuff("1234")");

Have somestuff pass 1234 to a routine in parser, which does something with it and returns a value to perl, say "5678", and have perl then pass "I have 5678" to say?

One case like this is $itemcount, which I am told doesn't work. Also I was thinking it would be nice to have an $itemlink which would let you put a link to an item in a say/shout/me/emote....
__________________
Maybe I should try making one of these servers...
Reply With Quote