mByte
01-20-2003, 04:31 PM
Another small update to the wesQuest.cpp
Syntax GIVE_ITEM [itemid] [charges]
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
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;
}
Syntax GIVE_ITEM [itemid] [charges]
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
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;
}