Thread: Modem Tapping?
View Single Post
  #52  
Old 01-14-2005, 04:32 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Possible ways for fixing abusing of modem tapping:

1. On the serverside when receiving the "actionattack" trigger save the time and next time check if the time difference is bigger than a certain amount to prevent sending tons of triggers at once. The time difference depends on the weapon that is currently used, but for modem tapping even a small time difference is enough. Something like this:
NPC Code:

if (actionserverattack) {
lastattacktime = strtofloat(#s(lastattack));
if (timevar2-lastattacktime in |0,0.2|)
return;
setstring lastattack,#v(timevar2); // saved in players account

// normal attack code
...
}



2. An additional check could be done by triggering the client or setting a client string to tell the client that he/she is allowed to send another trigger or to send more projectiles, this is e.g. used on Zone.

3. We will add more events and functions in the future for controlling projectiles better
Reply With Quote