View Single Post
  #1  
Old 01-20-2003, 04:31 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default wesQuest *Give_Item*

Another small update to the wesQuest.cpp

Syntax GIVE_ITEM [itemid] [charges]

Code:
	TRIGGER_TEXT:yes:{
		EMOTE:Gives %CHARNAME% a list to give to Mendela Charcoal.
		SAY:Here you go, hurry back ok?
		GIVE_ITEM 1001 0 
	}
Add this around line 411 atleast in my wesQuest.cpp thats the line
Code:
		else if (strstr(command,"GIVE_CASH") != NULL) {
			AddMoneyToPP(atoi(sep.arg[1]));
			ps = true;
		}
		/* Begin GIVE_ITEM */
		else if (strstr(command,"GIVE_ITEM") != NULL) {
			int16 ItemID = atoi(sep.arg[1]);
			sint8 ItemCharges = atoi(sep.arg[2]);
			this->SummonItem(ItemID, ItemCharges);
			ps = true;
		}
		/* End GIVE_ITEM */
		else if (strstr(command,"CAST_SPELL") != NULL) {
			other->CastSpell(atoi(sep.arg[1]),this->GetID());
			ps = true;
		}
__________________
mByte
Reply With Quote