[Dev Rev II] Ride Request with CG

Put your bugs you find in osRose here

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

[Dev Rev II] Ride Request with CG

Postby WiseGuy on Thu Jun 30, 2011 6:27 am

Idk if CG can allow ride request or not,
but this is report by my user, someone can ride request other with CG, like cart.

in my server, I do not allowed that with this small fixed:
file: worldpackets.cpp
FIND:
  1.            //LMA: check if both aren't already driving.
  2.             if (thisclient->Ride->Drive&&otherclient->Ride->Drive)
  3.             {
  4.                 return true;
  5.             }
  6.  

ADD:
  1.             if((otherclient->items[138].itemnum<xxx)||(otherclient->items[138].itemnum>xxx)){
  2.                 Log( MSG_HACK, "%s Try to ride request with CG or Cart without backseat", otherclient->CharInfo->charname);
  3.                 return true;
  4.             }
  5.  


edit:
change the xxx to your backseat number:

I know that is not a good fixed, but work :)
The best way is need to check if slot [135] is cart frame (pat type 511) and slot[138] is backseat.
It is nice to be important
but very very important to be nice
User avatar
WiseGuy
Pomic
Pomic
 
Posts: 112
Joined: Sat Nov 21, 2009 4:03 am
Location: Jakarta

Return to Bugs

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests

cron