Forum

> > CS2D > Scripts > Tibia money bug!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia money bug!

4 replies
To the start Previous 1 Next To the start

old Tibia money bug!

BestMan
User Off Offline

Quote
Hey! I have big bug in my server.

Player say "!drop nan" and he have no limit money.
I download unbug by KenVo but this isn't repair this bug.
Help!
(Sorry for my bad English)

old Re: Tibia money bug!

useigor
User Off Offline

Quote
I played your server and i can drop "inf" and can get -inf or -nan. But i didn't tested "!drop nan/inf" when i hadn't nan/inf. Does it work when player have no nan/inf? Because when you have unlimited money you can drop unlimited amount of money. And when player dies he drops unlimited money.
  For example: 1 player have nan. He got killed and player 2 took his nan. Now 2 players have nan. And so on.

old Re: Tibia money bug!

Ashelin
BANNED Off Offline

Quote
Would help alot if you'd post the part of the code where the drop system is. I'm pretty sure someone would help you then.

old Re: Tibia money bug!

mafia_man
User Off Offline

Quote
Add this line inside cs2dtibia/commands.lua at line 10:
1
if p[1] == "nan" or p[1] == "inf" or p[1] == "-nan" or p[1] == "-inf" then message(id,'You do not have enough money to drop.','255255255') return end

It should look like:
http://screenshooter.net/1685059/octcbei

old Re: Tibia money bug!

Yates
Reviewer Off Offline

Quote
@user BestMan: I suggest once you use Mafia_Man's fix you take a look at the save files and remove any money amount that look suspicious.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview