Forum

> > CS2D > Scripts > Tibia money bug!
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Tibia money bug!

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Tibia money bug!

BestMan
User Off Offline

Zitieren
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)

alt Re: Tibia money bug!

useigor
User Off Offline

Zitieren
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.

alt Re: Tibia money bug!

Ashelin
BANNED Off Offline

Zitieren
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.

alt Re: Tibia money bug!

mafia_man
User Off Offline

Zitieren
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

alt Re: Tibia money bug!

Yates
Reviewer Off Offline

Zitieren
@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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht