View Single Post
  #2  
Old 08-02-2015, 09:17 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

This could be done through perl, I could try putting something together for you if you want.


Was bored and wrote a thing.... and this should work I hope (may want to do some testing :p)

I tested it for awhile and it seemed to work fine for me

Place this inside the plugins folder...
https://perl.pastebin.mozilla.org/8841427


This is an example quest.. that uses it...

Code:
sub EVENT_SAY {
	if($text=~/hail/i) {
		plugin::Whisper("FREE SHIT BRO");
		$client->Message(315, "::" . quest::saylink("summon shit",1));
	} elsif($text=~/summon shit/i) {
		plugin::summon_into_inventory($client, 9990, 60); #60 skin of milk.
	}
}

Last edited by NatedogEZ; 08-02-2015 at 11:40 PM..
Reply With Quote