[FIX] - Statpoints as quest rewards.
Posted: Wed May 08, 2013 7:47 pm
Hi,
Recently i picked up some development on the OSiRose server part (for old-times-sake). Although i'm not a C++ programmer, i can recode it without problems.
Problem Description
i Noticed that the tutorial quest does not returns the damn 10 statpoins. It looks like the code was not implemented.
In \World Server\quest\QuestActions.cpp replace this at line 273
with
After this, recompile worldserver.exe.
you can remove the server->SendPM if you want, it's not important but provides some feedback.
regards,
Frans.
Recently i picked up some development on the OSiRose server part (for old-times-sake). Although i'm not a C++ programmer, i can recode it without problems.
Problem Description
i Noticed that the tutorial quest does not returns the damn 10 statpoins. It looks like the code was not implemented.
In \World Server\quest\QuestActions.cpp replace this at line 273
- case sStatPoints:
- if (!OperateValues<int>(curAbil->btOp, (int*)&client->CharInfo->StatPoints, curAbil->iValue))
- return QUEST_FAILURE;
- break;
with
- case sStatPoints:
- if (!OperateValues<int>(curAbil->btOp, (int*)&client->CharInfo->StatPoints, curAbil->iValue))
- return QUEST_FAILURE;
- // FJMK -- Begin Code
- // May 2013
- // Quest Rewards Statpoins Implementation
- RESETPACKET( pak, 0x720 );
- ADDWORD( pak, 32 );
- ADDWORD( pak, curAbil->iValue );
- ADDWORD( pak, 0 );
- client->client->SendPacket( &pak );
- server->SendPM(client, "[Quest Reward] You reveived %i statpoints.", curAbil->iValue);
- // FJMK -- End Code
- break;
After this, recompile worldserver.exe.
you can remove the server->SendPM if you want, it's not important but provides some feedback.
regards,
Frans.