chupaescadatri
Banned User
- Joined
- Jul 5, 2014
- Messages
- 338
- Reaction score
- 49
Can a script to fall when the internet.
the monster hit very little
?
tfs 0.4
the monster hit very little
?
tfs 0.4
Its hard to read but possible.Sorry dude you're going to have to explain what the problem is for anyone to be able to help you.
player,Are we talking when the player goes dark or the server itself? If its for the players u can toy around with the recievePing function
I thought you could do with script, I do not have the sourcesAdd an extra variable to player, uint32_t lastPing;//or whatever u wanna call it
onRecievePingBack? player->lastPing = OTSYS_TIME()
Monster.cpp onAttack/doAttack
If(OTSYS_TIME() - targetPlayer->lastPing > 10) damageFormula = newDamageFormula
I guess it might be possible with onCombat scripts, i'm not really familiar with the lua system in 0.4I thought you could do with script, I do not have the sources
How will you know that the player closed the client? -- that's can only be done in protocolgame.cpp :: sources.I guess it might be possible with onCombat scripts, i'm not really familiar with the lua system in 0.4
Unless there is a function to get players ip or something? Then you could check and see if the ip is the one of the player or just a blank oneHow will you know that the player closed the client? -- that's can only be done in protocolgame.cpp :: sources.