pvp bug?

Welcome in the osiRose emulator Project.

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

pvp bug?

Postby buzbee on Thu Jun 19, 2008 2:20 am

okay so i have edited my stb's to make the server worldwide pvp
okay so here is the bug

after being killed by another player, i select current field to respawn
50% of the time i respawn with 0 hp

i have edited in player.cpp
  1.    if(Stats->HP <= 0)
  2.     {
  3.         ADDWORD( pak, 0x0003 );
  4.         ADDWORD( pak, 0x0000 );
  5.     }
  6.     else


to

  1.    if(Stats->HP <= 0)
  2.     {
  3.         ADDWORD( pak, 0x0001 ); //0x0003
  4.         ADDWORD( pak, 0x0000 );
  5.         Stats->HP = Stats->MaxHP *10 / 100;
  6.     }
  7.     else


didnt really solve it

i even made the 10 / 100 to 25 / 100, and i have tried higher values, still no results

and i know you can use the /here command as well


anyone actually have a permanent working fix for this small bug
buzbee
Pomic
Pomic
 
Posts: 96
Joined: Fri Jun 06, 2008 3:32 am

Re: pvp bug?

Postby lmame on Thu Jun 19, 2008 8:57 am

What do you mean by "no result"? You still have 0 HP?
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: pvp bug?

Postby buzbee on Thu Jun 19, 2008 4:48 pm

i still repawn half the time with a bif fat zero
buzbee
Pomic
Pomic
 
Posts: 96
Joined: Fri Jun 06, 2008 3:32 am

Re: pvp bug?

Postby PurpleYouko on Thu Jun 19, 2008 5:57 pm

Try looking in this function instead

bool CWorldServer::pakUserDied ( CPlayer* thisclient, CPacket* P )
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: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: pvp bug?

Postby buzbee on Thu Jun 19, 2008 8:14 pm

thanks purpleyouko,

i tried it and it seems like a temp fix till i can figure something else out

now i have to figure out why on one players screen after he respawns the other player appears where they respawn
buzbee
Pomic
Pomic
 
Posts: 96
Joined: Fri Jun 06, 2008 3:32 am

Re: pvp bug?

Postby lmame on Sun Jun 22, 2008 1:11 pm

buzbee wrote:thanks purpleyouko,

i tried it and it seems like a temp fix till i can figure something else out

now i have to figure out why on one players screen after he respawns the other player appears where they respawn


Yeah I had this bug in osRose too while coding union wars :)
It's because (I think, it's been a long time) in pvp case (so IsPlayer() ) there is no "ClearBattle" stuff in battle.cpp so the killer keeps chasing the dead player across the map :lol: .
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City


Return to Support - OsiRose Emulator

Who is online

Users browsing this forum: No registered users and 4 guests

cron