View Single Post
  #1  
Old 04-04-2004, 09:58 AM
sheck
Fire Beetle
 
Join Date: Mar 2004
Posts: 10
Default getting item names

Is there a quest function that will return an item's name given it's id number? Not that it would be that difficult to write one, just wondering if one is already available...

Just an example, but rather than typing "rusty warhammer" I'd like to replace it with someFunction($item1), where someFunction fetches the item's name from the DB:
Code:
sub EVENT_ITEM{
	if($item1==6016){
		quest::say("Ooh, a rusty warhammer - here's your reward!");
		quest::givecash(5,0,0,0);
		quest::exp(100);
	}
	return 1;
}
Thanks,

Jason
Reply With Quote