Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about a function in cavebot
#2
Better for script when You make Variables.
My example:
Code:
Say (33451 31309 8:hi)
NPCSay (33451 31309 8:deposit all)
NPCSay (33451 31309 8:yes)
NPCSay (33451 31309 8:withdraw)
Withdraw (33451 31309 8:!vialmID! !vialmP! !vialmMAX!)
NPCSay (33451 31309 8:yes)
NPCSay (33451 31309 8:withdraw)
Withdraw (33451 31309 8:!vialhID! !vialhP! !vialhMAX!)
NPCSay (33451 31309 8:yes)
NPCSay (33451 31309 8:balance)
My function first deposit all money then withdraw money.
BBot withdrawing money for all items singly (You can see that in example)

!vialmID! - mana potion ID
!vialmP! - mana potion price
!vialmMAX! - mana potion max (for full check You must add one more variable "vialmMIN")
!vialhID! - health potion ID
!vialhP! - health potion price
!vialhMAX! - health potion max (full check You must add one more variable "vialhMIN")
Yoiu can add variables for SD or bolts etc...
BBot first checkhow much You have supply "vialmMAX - vialmMIN = how much vials You must buy" and multiply per vialmP

Ex. Variable by Erleo:
Code:
#Mana Vial Settings#
vialmID=268
vialmP=50
vialmMAX=1500
vialmLEAVE=100

#Health Vial Settings#
vialhID=7643
vialhP=310
vialhMAX=200
vialhLEAVE=70

So BBot withdraw only what You need money
I'm trying HELP You guys, make me favour and press this /\ green button with REP+, this keeping me with helping You.


Messages In This Thread
Question about a function in cavebot - by Armando - 07-22-2014, 04:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)