Better for script when You make Variables.
My example:
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:
So BBot withdraw only what You need money
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)
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.