Casino

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
Monomu
Newly Registered User
Posts: 16
Joined: 24 Nov 2012, 09:18

Casino

Post by Monomu »

Hey all!
I played in tulim casino today and its quite nice place but I don't like I can only put few casino coins there. I think better is if I can put so much as I want. Maybe good should be make it like bank, there are few options but I can chose how much I want spend too.
User avatar
tux9th
TMW Adviser
TMW Adviser
Posts: 428
Joined: 09 Mar 2012, 20:21
Location: -67.067433,54.433587

Re: Casino

Post by tux9th »

the coin exchanger was disabled a while back because of a bug.
I have no idea if this bug has been fixed yet.
Monomu
Newly Registered User
Posts: 16
Joined: 24 Nov 2012, 09:18

Re: Casino

Post by Monomu »

So this bug is here already about 2 years. :alt-=:
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Casino

Post by Nard »

There was no bug: it was a shop. I never understood the reason of the change. There is no possibility to use martingales so... :?: :?:


commit 2c07f14a13d1e1f88275bd12beded43706c53bae:
Changes: Price in item_db.txt, merchants Item ID changed to Name...
  • price changes to reflect Lora Tay's crafting and the price of cotton cloth
  • drops increased for cotton cloth
  • casino coins removed from merchants
  • several merchants changed to simple information scripts
  • price changes based on merchant sell value

Code: Select all

-001-2.gat,32,67,0  shop  MoneyChanger  124,503:10

+001-2.gat,32,67,0  script  MoneyChanger  124,{
+  mes "[" + @npcname$ + "]";
+  mes "\"I used to exchange Casino Coins for cash, but the Wizard's Council shut me down.  Now the casino only runs off Casino Coins currently in circulation.\"";
+  next;
+  mes "\"I heard that many a gambler wandered onto the Beach to the South West and through to the Snake Desert to the South East.  If you want to find coins already in circulation, you might find some on the monsters there.\"";
+  close;
+} 
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Casino

Post by Nard »

If this exploit has not been corrected it should be still possible to use it with other items with less benefit: when sold half the buy price (cake for example) it lets you a 33% benefit which is still rather comfortable :/ If it has been corrected there is no reason not to bring back the shop. Anyway it is possible to sell the coins through a script like hurnscald fountain or north tulimshar well which makes the trick uneffective.

Edit: 4144 says the bug was fixed. There is no reason not to bring the shop back. I commit it.
https://github.com/bh28/tmwa-server-dat ... fc34138f85
4144 wrote:Hi Nard,
This was fixed.
It was item duplication exploit. While in trade you change inventory and complete trade, after you get some modified number of items :)
Nard wrote:Привет 4144 :)
Chayenne wrote:they were used to do this: [...]
Are you aware of this exploit? If yes do you know if it has been corrected on TMWa? In this case I suppose you corrected it on Evol :)


Friendly yours


Nard
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
User avatar
AnonDuck
TMW Adviser
TMW Adviser
Posts: 645
Joined: 02 Jan 2009, 04:19
Location: Catland

Re: Casino

Post by AnonDuck »

IIRC all of those bugs were fixed *long* before the casino NPC was disabled. I have no idea why it was disabled or what the logic behind it was, but I do not believe it was because of this style of exploit.
Head of the TMW Illuminati
Post Reply