Fix : Statpoints as quest reward

Submit code for osProse project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Fix : Statpoints as quest reward

Postby FransK on Fri May 10, 2013 8:13 pm

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.
life's too short to complain.
User avatar
FransK
osiRose dev
osiRose dev
 
Posts: 24
Joined: Tue Apr 30, 2013 8:45 pm
Location: The Netherlands

Re: Fix : Statpoints as quest reward

Postby WiseGuy on Tue May 14, 2013 10:39 am

Can someone tell me, what quests associated with this fixed?
and what level to do that quest ?

thanks in advanced.
It is nice to be important
but very very important to be nice
User avatar
WiseGuy
Pomic
Pomic
 
Posts: 108
Joined: Sat Nov 21, 2009 4:03 am
Location: Jakarta

Re: Fix : Statpoints as quest reward

Postby PurpleYouko on Tue May 14, 2013 2:06 pm

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.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4598
Joined: Fri Aug 10, 2007 2:05 pm

Re: Fix : Statpoints as quest reward

Postby Circa on Wed May 15, 2013 6:17 am

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
Circa
Clown
Clown
 
Posts: 402
Joined: Sun Aug 23, 2009 5:52 am
Location: CA

Re: Fix : Statpoints as quest reward

Postby PurpleYouko on Wed May 15, 2013 3:50 pm

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
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4598
Joined: Fri Aug 10, 2007 2:05 pm

Re: Fix : Statpoints as quest reward

Postby Blackdpd on Wed May 15, 2013 5:08 pm

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 ;)
User avatar
Blackdpd
El Verloon Marshall
El Verloon Marshall
 
Posts: 900
Joined: Sun Jan 27, 2008 10:06 pm
Location: The Netherlands

Re: Fix : Statpoints as quest reward

Postby PurpleYouko on Wed May 15, 2013 5:25 pm

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:
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4598
Joined: Fri Aug 10, 2007 2:05 pm

Re: Fix : Statpoints as quest reward

Postby FransK on Thu May 16, 2013 9:28 pm

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:
life's too short to complain.
User avatar
FransK
osiRose dev
osiRose dev
 
Posts: 24
Joined: Tue Apr 30, 2013 8:45 pm
Location: The Netherlands

Re: Fix : Statpoints as quest reward

Postby PurpleYouko on Thu May 16, 2013 9:41 pm

You have a wife that likes computer games?
OMG!!

Mine can't stand computers at all lol
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4598
Joined: Fri Aug 10, 2007 2:05 pm


Return to Submit Code

Who is online

Users browsing this forum: No registered users and 1 guest

cron