collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Modified bid module  (Read 6221 times)

0 Members and 1 Guest are viewing this topic.

Offline kinbaku

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Modified bid module
« on: September 30, 2005, 03:58:19 pm »
Would it be possible for someone to modify the bid module that comes with the bot to not use the secondbid +1, but instead use the value that they bid.

Thus if they bid 20 and nobody else bids, he will win it for 20, not 2.

I have been trying to fix it myself, but i am novice in PHP and i cant get it to work.

Thanks ;)

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Modified bid module
« Reply #1 on: September 30, 2005, 09:43:51 pm »
I don't see why. The bid system is suppose to be like this.
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Modified bid module
« Reply #2 on: September 30, 2005, 10:11:35 pm »
Not sure why you would like it like that... the nice thing about the bot auto-bidding for you is that people don't have to spam the bot with tiny bid increments but instead just state the max ammount they wanna pay and the bot does the bid-incrementing itself...

But if you really want it, here's a crude hack to the Bid.php to create the effect you want...
Replace lines 123 to 141 with the following:

Code: [Select]
else if ($this -> maxbid < $ammount)
{
  $this -> secondbid = $ammount;
  $this -> maxbid = $ammount;
  $this -> highestbidder = $name;
}
Be aware of bugs in the above code, I have not tested it

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Modified bid module
« Reply #3 on: October 01, 2005, 03:10:32 am »
You wont archive much aside from more spamming.

Instead of bidding 20 to begin with, they will now instead start at 2, and then keep incrementing it themselves.

In effect bidding will take longer and create more spam than with the bot handeling the increments.
BeBot Founder and Fixer Kingpin

Offline kinbaku

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Modified bid module
« Reply #4 on: October 02, 2005, 10:44:44 pm »
Actually, the way my org wants it, you will not be able to see what others bid. I have already changed it so that instead of saying the amounts people bid, it just says that someone has placed a bid, and does not say who or how much they bid.

They are now up on my case to change it so it does not increment it from the second highest person.

Thank you for the proposed change, i will test it to see if it works in a little bit.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 328
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal