[userfunction] buyDiamonds()

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

[userfunction] buyDiamonds()

#1 Post by Rickster » Mon Dec 03, 2012 8:05 am

buyDiamonds() - Version 1.0

Description
This will buy diamonds at the npc Cedric in Varanas Cityplace. Be sure that your char stands near Cedric when calling this userfunction.

Usage

Code: Select all

buyDiamonds(_buyThisManyTimes, _debug_mode)
  • _buyThisManyTimes - defaults to 1, how many times you want to talk to the NPC and try to buy diamond, currently this is limitted to 1 per account and day by the gameclient
  • _debug_mode - true/false, defaults to false, prints some extra debug info and sleeps before buying diamonds. you need to press "del" to continue.
  • You can change the default settings in the userfunction.
Examples

Code: Select all

buyDiamonds()
  • runs with default settings and equals to

Code: Select all

buyDiamonds(1,false)
  • tries to buy diamonds from the NPC one time and does not print debug info and does not wait before buying

Code: Select all

buyDiamonds(3)
  • tries to buy diamond 3 times

Code: Select all

buyDiamonds(3,true)
  • tries to buy diamond 3 times, prints debug info and waits before it starts to buy
History
  • Version 1.0
    initial Version
Attachments
userfunction_buyDiamonds.lua
V1.0 by Rickster
(1.72 KiB) Downloaded 210 times

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests