[REQUEST] Honor Valor Premium And Reborn

Welcome in the osRose emulator Project.

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

[REQUEST] Honor Valor Premium And Reborn

Postby rave on Tue Sep 03, 2013 9:46 am

I Copied Reborn + 1 Every time you reborn at gmcmds.cpp and change things to

honor
valor
premium

not really change but add cause i want to make it like

every time you reborn, what will happen is that honor valor and premium will also have 1 point

so every reborn it will add 1 reborn honor valor and premium

but it doesnt work any code on how to work with this one?

===================
is it possible that every player who kill another player at pvp gains valor or honor?
please give me the code for it thanks masters
rave
Clown
Clown
 
Posts: 459
Joined: Thu Dec 10, 2009 1:07 pm

Re: [REQUEST] Honor Valor Premium And Reborn

Postby Vetyst on Tue Sep 03, 2013 1:48 pm

both of those things are possible.

basicly, when you reborn de function pakGMReborn is called, somewhere in that function there shouldb e somthing like this

thisclient->Stats->Reborn += 1;

or

thisclient->Stats->Reborn++;

Add the following;

thisclient->Stats->Honor++;
thisclient->Stats->Valor++;
thisclient->Stats->Premium++;

also you should look in the battle.cpp and find where a pvp player dies.
add the same in there.
User avatar
Vetyst
osRose dev
osRose dev
 
Posts: 146
Joined: Sat Jun 18, 2011 10:56 am
Location: The Netherlands

Re: [REQUEST] Honor Valor Premium And Reborn

Postby rave on Wed Sep 04, 2013 2:07 am

Vetyst wrote:both of those things are possible.

basicly, when you reborn de function pakGMReborn is called, somewhere in that function there shouldb e somthing like this

thisclient->Stats->Reborn += 1;

or

thisclient->Stats->Reborn++;

Add the following;

thisclient->Stats->Honor++;
thisclient->Stats->Valor++;
thisclient->Stats->Premium++;

also you should look in the battle.cpp and find where a pvp player dies.
add the same in there.


it works : )

can i have follow question?
is there a code to convert things up?
sample

converting honor to vote points?
via website?

thanks in advance : )
rave
Clown
Clown
 
Posts: 459
Joined: Thu Dec 10, 2009 1:07 pm

Re: [REQUEST] Honor Valor Premium And Reborn

Postby Qctiimatt on Wed Sep 04, 2013 3:54 am

omg thx Honor , Valor , premium work but i need help for every time player kill other player have 1 premium point :DDD
Qctiimatt
Smoulie
Smoulie
 
Posts: 58
Joined: Tue Mar 16, 2010 10:12 pm

Re: [REQUEST] Honor Valor Premium And Reborn

Postby Vetyst on Wed Sep 04, 2013 5:54 am

rave wrote:
Vetyst wrote:both of those things are possible.

basicly, when you reborn de function pakGMReborn is called, somewhere in that function there shouldb e somthing like this

thisclient->Stats->Reborn += 1;

or

thisclient->Stats->Reborn++;

Add the following;

thisclient->Stats->Honor++;
thisclient->Stats->Valor++;
thisclient->Stats->Premium++;

also you should look in the battle.cpp and find where a pvp player dies.
add the same in there.


it works : )

can i have follow question?
is there a code to convert things up?
sample

converting honor to vote points?
via website?

thanks in advance : )


hmm that kode would be something like this;

thisclient->Stats->Honor -= /*Enter de cost of honor points for one vote point*/
thisclient->Stats->Donation += /*Enter de reward for trading Honor for Vote points

ofcourse the 'Thisclient->Stats->Donation' should be replaced with the correct vote point variable you are currently using.
User avatar
Vetyst
osRose dev
osRose dev
 
Posts: 146
Joined: Sat Jun 18, 2011 10:56 am
Location: The Netherlands

Re: [REQUEST] Honor Valor Premium And Reborn

Postby rave on Wed Sep 04, 2013 7:27 am

Vetyst wrote:
rave wrote:
Vetyst wrote:both of those things are possible.

basicly, when you reborn de function pakGMReborn is called, somewhere in that function there shouldb e somthing like this

thisclient->Stats->Reborn += 1;

or

thisclient->Stats->Reborn++;

Add the following;

thisclient->Stats->Honor++;
thisclient->Stats->Valor++;
thisclient->Stats->Premium++;

also you should look in the battle.cpp and find where a pvp player dies.
add the same in there.


it works : )

can i have follow question?
is there a code to convert things up?
sample

converting honor to vote points?
via website?

thanks in advance : )


hmm that kode would be something like this;

thisclient->Stats->Honor -= /*Enter de cost of honor points for one vote point*/
thisclient->Stats->Donation += /*Enter de reward for trading Honor for Vote points

ofcourse the 'Thisclient->Stats->Donation' should be replaced with the correct vote point variable you are currently using.


i mean this should be in php coded right ?
rave
Clown
Clown
 
Posts: 459
Joined: Thu Dec 10, 2009 1:07 pm

Re: [REQUEST] Honor Valor Premium And Reborn

Postby Vetyst on Wed Sep 04, 2013 8:21 pm

well yes :), for this questions goto the right section on this forum :)
User avatar
Vetyst
osRose dev
osRose dev
 
Posts: 146
Joined: Sat Jun 18, 2011 10:56 am
Location: The Netherlands


Return to Support - OsRose Emulator

Who is online

Users browsing this forum: No registered users and 4 guests