Scrap/Random Hacks/Fishing Code (2).txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

48 lines
No EOL
1.2 KiB
Text

fishCaught = 0
fishCaught += 20
from direct.interval.IntervalGlobal import *
def catch():
fish = base.cr.doFindAll("FishingTarget")
for fish in fish:
print "Activated"
fp = base.cr.doFindAll("FishingPond")
for fp in fp:
fp.d_hitTarget(fish)
def sell():
base.localAvatar.setMaxFishTank(fishCaught)
fishman = base.cr.doFindAll("Fisherman")
for fishman in fishman:
fishid = fishman.doId
base.localAvatar.setMoney(base.localAvatar.bankMoney)
messenger.send('enterNPCToon-' + str(fishid), [1])
def onGo():
seq = Sequence()
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Func(catch))
seq.append(Wait(1))
seq.append(Func(sell))
seq.start()
onGo()