Fixed Quest Item Turn-in using $ItemCount()
This was a pain...
In client_process.cpp, Client::HandlePacket FROM: Code:
parse->Event(EVENT_ITEM, tmp->GetNPCTypeID(), 0, tmp, this->CastToMob()); Code:
char tradeliststring[100]; Then, In parser.cpp, Parser::Event FROM: Code:
case EVENT_ITEM: { Code:
case EVENT_ITEM: { And finally, In parser.cpp, Parser:ParseVars FROM: Code:
if (record == 1 && pch[i] != ')') TO: Code:
if (record == 1 && pch[i] != ')' && pch[i]!='\"') Regards, krich |
sorry for a stupid question, but what does this fix? (having trouble following the code)
hope im not offending, I just cant see it I guess. |
No problem. Hey, if I'm submitting bad code, no mercy...lol.
It passes the contents of the NPC trade window into the Event method so that they can be made into the variables $item1 through $item4 and then be used by the $itemcount() function. I am going to take my name out of it though...hehe Regards, krich |
Quote:
|
All times are GMT -4. The time now is 12:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.