Page 1 of 1

Fix : Statpoints as quest reward

PostPosted: Fri May 10, 2013 8:13 pm
by FransK
Hi, basically the same fix as i made for osirose; this fix enables the fairy to give you the 10 statpoints.

Project: Worldserver
File :
Line: around 287

Replace:
  1. case 32: // Stat points
  2.                 if(!OperateValues<int>(data->btOp, (int*)&client->CharInfo->StatPoints, data->iValue);
  3.             break;
  4.  


And replace with :
  1. case 32: // Stat points
  2.             {
  3.                 if(!OperateValues<int>(data->btOp, (int*)&client->CharInfo->StatPoints, data->iValue))
  4.                     return QUEST_FAILURE;
  5.  
  6.                 // FJMK add fix for fairy quest; returns statpoints
  7.                 BEGINPACKET(pak, 0x720 );
  8.                 ADDWORD(pak, 32 );
  9.                 ADDWORD(pak, curAbil->iValue );
  10.                 ADDWORD(pak, 0 );
  11.                 client->client->SendPacket( &pak );
  12.                 // FJMK End Fix.
  13.  
  14.             break;
  15.             }
  16.  


Voila, you can now receive statpoints as quest reward.
Remove the //FJMK code if you want, it's my way to track my changes.

Compiled and tested on native 112 client.

regards,
Frans.

Re: Fix : Statpoints as quest reward

PostPosted: Tue May 14, 2013 10:39 am
by WiseGuy
Can someone tell me, what quests associated with this fixed?
and what level to do that quest ?

thanks in advanced.

Re: Fix : Statpoints as quest reward

PostPosted: Tue May 14, 2013 2:06 pm
by PurpleYouko
There aren't any quests that give this reward. that's why it was never initially coded.
Quests can also be coded to give level, HP and just about anything else you can think of.

The idea behind this modification is so that custom quests can be made to give different rewards.

Re: Fix : Statpoints as quest reward

PostPosted: Wed May 15, 2013 6:17 am
by Circa
Actually this is a lvl 1 reward by talking with the arua fairy thing in birth island irose and wherever you spawn in the new adventure plains . you click on want to know about stats and how they work and you are granted 10 stat points

Re: Fix : Statpoints as quest reward

PostPosted: Wed May 15, 2013 3:50 pm
by PurpleYouko
Circa wrote:Actually this is a lvl 1 reward by talking with the arua fairy thing in birth island irose and wherever you spawn in the new adventure plains . you click on want to know about stats and how they work and you are granted 10 stat points

Guess they must have dropped that quest in Evo. I'm not very familiar with irose quests

Re: Fix : Statpoints as quest reward

PostPosted: Wed May 15, 2013 5:08 pm
by Blackdpd
it still kind of amazes me that people dont know about that :)
but yh it has always been there in irose. not sure about pre evo though.
i think it should be the same there aswell.

anyways nice work, i love to see some changes/fixes for osirose ;)

Re: Fix : Statpoints as quest reward

PostPosted: Wed May 15, 2013 5:25 pm
by PurpleYouko
Yeah it might be there in pre-evo actually now that I think about it.
I don't have that code in my KTRose server though so if it is there then we aren't processing it correctly.
The vast majority of potential rewards are not coded to be honest. since most are never needed. I guess i just assumed that stat points was one of them :lol:

Re: Fix : Statpoints as quest reward

PostPosted: Thu May 16, 2013 9:28 pm
by FransK
Lol, i agree and can imagine that most ppl did not notice it. But my wife and I played iRose since the beginning. She is litteraly in love with iRose and has played more than 100 characters in the old game, so she's the best tester there is and the one- and only reason i dug into this issue :p (so she stops nagging me about it .... lol


PurpleYouko wrote:Yeah it might be there in pre-evo actually now that I think about it.
I don't have that code in my KTRose server though so if it is there then we aren't processing it correctly.
The vast majority of potential rewards are not coded to be honest. since most are never needed. I guess i just assumed that stat points was one of them :lol:

Re: Fix : Statpoints as quest reward

PostPosted: Thu May 16, 2013 9:41 pm
by PurpleYouko
You have a wife that likes computer games?
OMG!!

Mine can't stand computers at all lol