Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##by 0rx,thelorgorenk,agunq
- ##RPGGAME!!
- if cmd=="rpgstart":
- if user.name in rank5 or user.name in rank4:
- rpgbool=True
- room.message("RPG actived // commands - .hunt .bosshunt .weaponshop .wakeup .stats")
- else:
- room.message("Sorry only rank 4,5 can start this :|")
- #end
- elif cmd =="rpgend":
- if user.name in rank5 or user.name in rank4 and user.name in rank1:
- rpgbool=False
- bossparty=False
- room.message("RPG has been End!")
- else:
- room.message("Sorry only rank 4,5 can end this :|")
- ##Debut/Starter
- elif rpgbool==True and (cmd == "rest" or cmd == "wakeup"):
- user = user.name.lower()
- if user in bosshunt or user in monhunt: return
- if user in rpg:
- weapon, hp, lvl, exp = json.loads(rpg[user])
- rpg[user] = json.dumps([weapon, hp, lvl, exp])
- hp, lvl=int(hp),int(lvl)
- if lvl == 1:
- hp=2000
- elif lvl == 2:
- hp=2500
- elif lvl == 3:
- hp=3000
- elif lvl == 4:
- hp=3500
- elif lvl == 5:
- hp=4000
- elif lvl == 6:
- hp=5000
- elif lvl == 7:
- hp=6000
- elif lvl == 8:
- hp=7000
- elif lvl == 9:
- hp=8500
- elif lvl == 10:
- hp=10000
- elif lvl == 11:
- hp=11500
- elif lvl == 12:
- hp=13000
- elif lvl == 13:
- hp=15000
- elif lvl == 14:
- hp=17000
- elif lvl == 15:
- hp=20000
- elif lvl == 16:
- hp=22000
- elif lvl == 17:
- hp=24000
- elif lvl == 18:
- hp=26000
- elif lvl == 19:
- hp=28000
- elif lvl == 20:
- hp=30000
- elif lvl == 21:
- hp=33000
- elif lvl == 22:
- hp=35000
- elif lvl == 23:
- hp=37000
- elif lvl == 24:
- hp=40000
- elif lvl == 25:
- hp=42000
- elif lvl == 26:
- hp=44000
- elif lvl == 27:
- hp=46000
- elif lvl == 28:
- hp=48000
- elif lvl == 29:
- hp=50000
- elif lvl == 30:
- hp=55000
- hp , lvl = str(hp),str(lvl)
- room.message("Halo %s, Hello, you're sleeping. Here is your stats:<br> -Hp: %s<br> -LVL: %s<br> -EXP: %s" % (user, str(hp), str(lvl), str(exp)), True)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- else:
- hp=2000
- weapon=random.choice(weaponlist)
- lvl=1
- exp=0
- hp = str(hp)
- lvl=str(lvl)
- exp=str(exp)
- room.message("%s Hello, Welcome To RPG GAME!!. Here is you're new stats:<br> -HEALTH : %s <br> -LVL: %s <br> -EXP: %s" % (user, str(hp), str(lvl), str(exp)), True)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- ##inn
- elif rpgbool==True and (cmd =="heal" or cmd == "h"):
- user = user.name.lower()
- if user not in rpg: return
- hpfull = ""
- heal = ""
- if user in monhunt or user in bosshunt:
- weapon , hp , lvl , exp = json.loads(rpg[user])
- hp , lvl=int(hp),int(lvl)
- if hp < 2000 and lvl == 1:
- heal = random.randint(100,300)
- hp = hp + heal
- if hp + heal >= 2000:
- hp = 2000
- heal = 0
- hpfull = hp = 2000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 2500 and lvl == 2:
- heal = random.randint(150,400)
- hp = hp + heal
- if hp + heal >= 2500:
- hp = 2500
- heal = 0
- hpfull = hp = 2500
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("<f x123333FF='1'>You're health <f x1200F='1'>is full :)")
- elif hp < 3000 and lvl == 3:
- heal = random.randint(250,500)
- hp = hp + heal
- if hp + heal >= 3000:
- hp = 3000
- heal = 0
- hpfull = hp = 3000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 3500 and lvl == 4:
- heal = random.randint(350,650)
- hp = hp + heal
- if hp + heal >= 3500:
- heal = 0
- hp=3500
- hpfull = hp = 3500
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 4000 and lvl == 5:
- heal = random.randint(400,800)
- hp = hp + heal
- if hp + heal >= 4000:
- heal = 0
- hp=4000
- hpfull = hp = 4000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 5000 and lvl == 6:
- heal = random.randint(500,950)
- hp = hp + heal
- if hp + heal >= 5000:
- heal = 0
- hp=5000
- hpfull = hp = 5000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 6000 and lvl == 7:
- heal = random.randint(800,1000)
- hp = hp + heal
- if hp + heal >= 6000:
- heal = 0
- hp=6000
- hpfull = hp = 6000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 7000 and lvl == 8:
- heal = random.randint(900,1150)
- hp = hp + heal
- if hp + heal >= 7000:
- heal = 0
- hp=7000
- hpfull = hp = 7000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 8500 and lvl == 9:
- heal = random.randint(950,1200)
- hp = hp + heal
- if hp + heal >= 8500:
- heal = 0
- hp=8500
- hpfull = hp = 8500
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 10000 and lvl == 10:
- heal = random.randint(1000,1300)
- hp = hp + heal
- if hp + heal >= 10000:
- heal = 0
- hp=10000
- hpfull = hp = 10000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 11500 and lvl == 11:
- heal = random.randint(1050,1350)
- hp = hp + heal
- if hp + heal >= 11500:
- heal = 0
- hp=11500
- hpfull = hp = 11500
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 13000 and lvl == 12:
- heal = random.randint(1300,1500)
- hp = hp + heal
- if hp + heal >= 13000:
- heal = 0
- hp=13000
- hpfull = hp = 13000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 15000 and lvl == 13:
- heal = random.randint(1400,1550)
- hp = hp + heal
- if hp + heal >= 15000:
- heal = 0
- hp=15000
- hpfull = hp = 15000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 17000 and lvl == 14:
- heal = random.randint(1500,1650)
- hp = hp + heal
- if hp + heal >= 17000:
- heal = 0
- hp=17000
- hpfull = hp = 17000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 20000 and lvl == 15:
- heal = random.randint(1700,1900)
- hp = hp + heal
- if hp + heal >= 20000:
- heal = 0
- hp=20000
- hpfull = hp = 20000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 22000 and lvl == 16:
- heal = random.randint(1800,2100)
- hp = hp + heal
- if hp + heal >= 22000:
- heal = 0
- hp=22000
- hpfull = hp = 22000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 24000 and lvl == 17:
- heal = random.randint(1900,2150)
- hp = hp + heal
- if hp + heal >= 24000:
- heal = 0
- hp=24000
- hpfull = hp = 24000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 26000 and lvl == 18:
- heal = random.randint(2000,2350)
- hp = hp + heal
- if hp + heal >= 26000:
- heal = 0
- hp=26000
- hpfull = hp = 26000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 28000 and lvl == 19:
- heal = random.randint(2200,2500)
- hp = hp + heal
- if hp + heal >= 28000:
- heal = 0
- hp=28000
- hpfull = hp = 28000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 30000 and lvl == 20:
- heal = random.randint(2700,2850)
- hp = hp + heal
- if hp + heal >= 30000:
- heal = 0
- hp=30000
- hpfull = hp = 30000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 33000 and lvl == 21:
- heal = random.randint(2800,3000)
- hp = hp + heal
- if hp + heal >= 33000:
- heal = 0
- hp=33000
- hpfull = hp = 33000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 35000 and lvl == 22:
- heal = random.randint(2900,3200)
- hp = hp + heal
- if hp + heal >= 35000:
- heal = 0
- hp=35000
- hpfull = hp = 35000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 37000 and lvl == 23:
- heal = random.randint(3000,3250)
- hp = hp + heal
- if hp + heal >= 37000:
- heal = 0
- hp=37000
- hpfull = hp = 37000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 40000 and lvl == 24:
- heal = random.randint(3300,3600)
- hp = hp + heal
- if hp + heal >= 40000:
- heal = 0
- hp=40000
- hpfull = hp = 40000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 42000 and lvl == 25:
- heal = random.randint(3600,3800)
- hp = hp + heal
- if hp + heal >= 42000:
- heal = 0
- hp=42000
- hpfull = hp = 42000
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message("You're health <f x1200F='1'>is full :)")
- elif hp < 6500 and lvl == 26:
- hp=6500
- elif hp < 6750 and lvl == 27:
- hp=6750
- elif hp < 7000 and lvl == 28:
- hp=7000
- elif hp < 7250 and lvl == 29:
- hp=7250
- elif hp < 7500 and lvl == 30:
- hp=7500
- elif hp < 7750 and lvl == 31:
- hp=7750
- elif hp < 8000 and lvl == 32:
- hp=8000
- elif hp < 8250 and lvl == 33:
- hp=8250
- elif hp < 8500 and lvl == 34:
- hp=8500
- elif hp < 8750 and lvl == 35:
- hp=8750
- elif hp < 9000 and lvl == 36:
- hp=9000
- elif hp < 9250 and lvl == 37:
- hp=9250
- elif hp < 9500 and lvl == 38:
- hp=9500
- elif hp < 9750 and lvl == 39:
- hp=9750
- elif hp < 10000 and lvl == 40:
- hp=10000
- elif hp < 10250 and lvl == 41:
- hp=10250
- elif hp < 10500 and lvl == 42:
- hp=10500
- elif hp < 10750 and lvl == 43:
- hp=10750
- elif hp < 11000 and lvl == 44:
- hp=11000
- elif hp < 11250 and lvl == 45:
- hp=11250
- elif hp < 11500 and lvl == 46:
- hp=11500
- elif hp < 11750 and lvl == 47:
- hp=11750
- elif hp < 12000 and lvl == 48:
- hp=12000
- elif hp < 12250 and lvl == 49:
- hp=12250
- elif hp < 12500 and lvl == 50:
- hp=12500
- elif hp < 12750 and lvl == 51:
- hp=12750
- elif hp < 13000 and lvl == 52:
- hp=13000
- elif hp < 13250 and lvl == 53:
- hp=13250
- elif hp < 13500 and lvl == 54:
- hp=13500
- elif hp < 13750 and lvl == 55:
- hp=13750
- elif hp < 14000 and lvl == 56:
- hp=14000
- elif hp < 14250 and lvl == 57:
- hp=14250
- elif hp < 14500 and lvl == 58:
- hp=14500
- elif hp < 14750 and lvl == 59:
- hp=14750
- elif hp < 15000 and lvl == 60:
- hp=15000
- elif hp < 15250 and lvl == 61:
- hp=15200
- elif hp < 15500 and lvl == 62:
- hp=15500
- elif hp < 15750 and lvl == 63:
- hp=10250
- elif hp < 16700 and lvl == 64:
- hp=16000
- elif hp < 16250 and lvl == 65:
- hp=16250
- elif hp < 16500 and lvl == 66:
- hp=16500
- elif hp < 16750 and lvl == 67:
- hp=16750
- elif hp < 17000 and lvl == 68:
- hp=17000
- elif hp < 17250 and lvl == 69:
- hp=17250
- elif hp < 17500 and lvl == 70:
- hp=17500
- elif hp < 17750 and lvl == 71:
- hp=17750
- elif hp < 18250 and lvl == 72:
- hp=18250
- elif hp < 18500 and lvl == 73:
- hp=18500
- elif hp < 18750 and lvl == 74:
- hp=18750
- elif hp < 19000 and lvl == 75:
- hp=19000
- elif hp < 19250 and lvl == 76:
- hp=19250
- elif hp < 19500 and lvl == 77:
- hp=19500
- elif hp < 19750 and lvl == 78:
- hp=19750
- elif hp < 20000 and lvl == 79:
- hp=20000
- elif hp < 20250 and lvl == 80:
- hp=20250
- elif hp < 20500 and lvl == 81:
- hp=20500
- elif hp < 20750 and lvl == 82:
- hp=20750
- elif hp < 20750 and lvl == 83:
- hp=20750
- elif hp < 21000 and lvl == 84:
- hp=21000
- elif hp < 21250 and lvl == 85:
- hp=21250
- elif hp < 21500 and lvl == 86:
- hp=21500
- elif hp < 21750 and lvl == 87:
- hp=21750
- elif hp < 22000 and lvl == 88:
- hp=22000
- elif hp < 22250 and lvl == 89:
- hp=22250
- elif hp < 22500 and lvl == 90:
- hp=22500
- elif hp < 23000 and lvl == 91:
- hp=23000
- elif hp < 23250 and lvl == 92:
- hp=23250
- elif hp < 23500 and lvl == 93:
- hp=23500
- elif hp < 23750 and lvl == 94:
- hp=23750
- elif hp < 24000 and lvl == 95:
- hp=24000
- elif hp < 24250 and lvl == 96:
- hp=24250
- elif hp < 24500 and lvl == 97:
- hp=24500
- elif hp < 24750 and lvl == 98:
- hp=24750
- elif hp < 25000 and lvl == 99:
- hp=25000
- elif hp <25250 and lvl == 100:
- hp=25250
- hp , lvl= str(hp),str(lvl)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- if hpfull: return
- room.message(sntonick(user) + " <f x1233FFFF='1'>has been gived: "+str(heal)+" - <f x12F00='1'>Hp: "+str(hp)+" <f x12334433='1'>LVL: "+str(lvl)+" <f x126666CC='1'>EXP: "+str(exp), True)
- ##weapon shop
- elif rpgbool==True and cmd =="weaponshop":
- user=user.name.lower()
- if (user in bosshunt or user in monhunt): return
- if user in rpg:
- weapon , hp , lvl , exp = json.loads(rpg[user])
- weapon=random.choice(weaponlist)
- room.message(sntonick(user) + " <f x12F00='1'>Now Has : " + weapon +" <f x1233FFFF='1'>as a Weapon :).",True)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- else:
- hp=250
- weapon=random.choice(weaponlist)
- hp = str(hp)
- lvl=1
- lvl=str(lvl)
- exp=0
- exp=str(exp)
- room.message(sntonick(user) + " <f x12F00='1'>Now Has : " + weapon +" <f x1233FFFF='1'>as a Weapon :).",True)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- #explore
- elif rpgbool==True and cmd=="hunt":
- user=user.name.lower()
- if user not in rpg: return
- if user not in monhunt:
- room.message(sntonick(user)+" , <f x12663366='0'>Leaving the town <f x1233FFFF='1'>and searhing for a Battle...<f x12F00='1'>", True)
- delay = random.randint(5,10)
- monster = random.choice(monsterlist)
- if monster in tmonlife:
- monlife = json.loads(tmonlife[monster])
- monsterlife = monlife
- self.setTimeout(delay, room.message, "<f x1233FFFF='1'>Yosh !!, -<f x12F00='1'> Fighting: "+monster+" // <f x12334433='1'>HP : "+str(monsterlife)+" <f x126666CC='1'>Commands : 'atk 'run 'stats 'heal",True)
- monhunt[user] = json.dumps([monster, monsterlife])
- else:
- monsterlife = random.randint(2000,10000)
- self.setTimeout(delay, room.message, "<f x1233FFFF='1'>Yosh !!, -<f x12F00='1'> Fighting: "+monster+" // <f x12334433='1'>HP : "+str(monsterlife)+" <f x126666CC='1'>Commands : 'atk 'run 'stats 'heal",True)
- monhunt[user] = json.dumps([monster, monsterlife])
- tmonlife[monster] = json.dumps(monsterlife)
- if user not in rpg:
- room.message("<f x12F00='1'>Type .weaponshop or .wakeup <f x1233FFFF='1'>for Join to a game :)...")
- #boss Hunt
- elif rpgbool==True and cmd=="bosshunt":
- user=user.name.lower()
- if user not in rpg: return
- weapon, hp, lvl, exp = json.loads(rpg[user])
- lvl = int(lvl)
- if lvl < 15:
- room.message("Sorry you're lvl is too slow.. the boss is really hard :|")
- return
- if (user in bosshunt): return
- if bossparty == True:
- room.message(sntonick(user)+" is joinning the Boss Hunting Party", True)
- bosshunt.append(user)
- else:
- room.message(sntonick(user)+" is searching for Powerfull Boss...", True)
- boss = bosslist[0]
- bosslife = random.randint(250000,350000)
- if boss == "Flame Emperor":
- bosslife = 600000
- self.setTimeout(4, room.message, "BATTLE WITH: "+boss+" // HP : "+str(bosslife)+" Options : 'batk 'stats 'heal")
- bosshunt.append(user)
- bossparty=True
- bossdead=False
- #wattack
- elif rpgbool==True and cmd =="atk":
- user=user.name.lower()
- if user not in rpg:return
- if user in monhunt:
- monster, monsterlife = json.loads(monhunt[user])
- weapon , hp ,lvl , exp= json.loads(rpg[user])
- hp, lvl=int(hp), int(lvl)
- if lvl == 1: randdamage=random.randint(2000,5000)
- elif lvl == 2: randdamage=random.randint(500,750)
- elif lvl == 3: randdamage=random.randint(500,750)
- elif lvl == 4: randdamage=random.randint(500,750)
- elif lvl == 5: randdamage=random.randint(500,750)
- elif lvl == 6: randdamage=random.randint(500,750)
- elif lvl == 7: randdamage=random.randint(500,750)
- elif lvl == 8: randdamage=random.randint(500,750)
- elif lvl == 9: randdamage=random.randint(500,750)
- elif lvl == 10: randdamage=random.randint(500,750)
- elif lvl == 11: randdamage=random.randint(500,750)
- elif lvl == 12: randdamage=random.randint(500,750)
- elif lvl == 13: randdamage=random.randint(500,750)
- elif lvl == 14: randdamage=random.randint(500,750)
- elif lvl == 15: randdamage=random.randint(500,750)
- elif lvl == 16: randdamage=random.randint(500,750)
- elif lvl == 17: randdamage=random.randint(500,750)
- elif lvl == 18: randdamage=random.randint(500,750)
- elif lvl == 19: randdamage=random.randint(500,750)
- elif lvl == 20: randdamage=random.randint(500,750)
- randdamage = int(randdamage)
- monsterlife = int(monsterlife)
- monsterlife = monsterlife - randdamage
- mondamage = random.randint(200,750)
- mondamage = int(mondamage)
- hp= hp - mondamage
- room.message(sntonick(user)+" <f x1233FFFF='1'>Attack: "+monster+" - <f x12F00='1'>With : "+weapon+" <f x126666CC='1'>Damage: "+str(randdamage)+" - <f x1233FFFF='1'>HP Monster : "+str(monsterlife)+" // "+monster+" <f x12F00='1'>Attack: "+sntonick(user)+" <f x1233FFFF='1'>Damage: "+str(mondamage)+" - <f x12334433='1'>HP "+sntonick(user)+": "+str(hp),True)
- hp = str(hp)
- lvl = str(lvl)
- monsterlife = str(monsterlife)
- monhunt[user] = json.dumps([monster, monsterlife])
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- hp=int(hp)
- monsterlife = int(monsterlife)
- #if monsterlife < 3000
- # randexp=random.randint(250,400)
- if monsterlife <=0 and hp > 0:
- if monster in tmonlife:
- monlife = json.loads(tmonlife[monster])
- if monlife < 3000:
- randexp=random.randint(250,400)
- elif monlife >= 3000 and not monlife > 5000:
- randexp=random.randint(400,600)
- elif monlife >= 5000 and not monlife > 7600:
- randexp=random.randint(600,700)
- elif monlife >= 7600:
- randexp=random.randint(900,950)
- exp=int(exp)
- exp=exp + randexp
- room.message(monster+" ,<f x1233FFFF='1'>has been defeated, @"+sntonick(user)+",<f x12F00='1'> get Exp :"+str(randexp)+" <f x12334433='1'>Total Exp: "+str(exp),True)
- if hp<30:
- hp=60
- hp = str(hp)
- lvl=str(lvl)
- exp=str(exp)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- del monhunt[user]
- hp = int(hp)
- if hp <=0:
- room.message("@"+sntonick(user)+" <f x12F00='1'>Defeat <f x1233FFFF='1'>From game - <f x12334433='1'>Game.Over x_x",True)
- if hp<30:
- hp=60
- hp = str(hp)
- lvl=str(lvl)
- exp=str(exp)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- del monhunt[user]
- if rpgbool==True and cmd == "lvl":
- xp = 0
- xp = int(xp)
- l=0
- l=int(l)
- user = user.name.lower()
- loadeng = "<f x1233FFFF='1'>Sav<f x12F00='1'>ar . . . . ."
- if user in rpg:
- weapon,hp,lvl,exp=json.loads(rpg[user])
- lvl, exp = int(lvl), int(exp)
- if lvl == 1: exp == 2000
- if lvl == 2: exp == 2500
- if lvl == 3: exp == 3000
- if lvl == 4: exp == 5000
- if lvl == 5: exp == 7500
- if lvl == 6: exp == 9000
- if lvl == 7: exp == 10000
- if lvl == 8: exp == 12000
- if lvl == 9: exp == 14000
- if lvl == 10: exp == 17000
- if lvl == 11: exp == 20000
- if lvl == 12: exp == 25000
- if lvl == 13: exp == 28000
- if lvl == 14: exp == 30000
- if lvl == 15: exp == 33000
- if lvl == 16: exp == 35000
- if lvl == 17: exp == 37000
- if lvl == 18: exp == 39000
- if lvl == 19: exp == 44000
- if lvl == 20: exp == 47000
- if exp >= xp:
- lvl = int(lvl)
- lvl = lvl + 1
- exp = xp - exp
- exp = str(exp)
- rpg[user] = json.dumps([weapon,hp,lvl,exp])
- room.message(loadeng, True)
- self.setTimeout(int(3), room.message, sntonick(user)+",<f x12F00='1'> lvl up. <f x1233FFFF='1'>now you're lvl <f x12334433='1'>"+str(lvl),True)
- else:
- room.message("Your lvl is "+str(lvl)+". You need to reach "+str(xp)+" To lvl up.")
- if cmd == "list":
- if args:
- if args == "bossparty":
- room.message("<f x1200F='1'>Here are player list in <f x12F00='1'>Boss Hunt Party:<f x12334433='1'> %s" % list(bosshunt), True)
- #if args == "monparty":
- # room.message("Here are player list in Monster Hunt Party: %s" % list(monpartyhunt), True)
- else:
- return
- #endbattle
- if rpgbool==True and cmd=="run":
- user = user.name.lower()
- if user not in rpg: return
- if (user in bosshunt or user in monhunt):
- if user in bosshunt:
- bosshunt.remove(user)
- room.message(sntonick(user)+"<f x12F00='1'> ran from <f x1233FFFF='1'>battle",True)
- if user in monhunt:
- del monhunt[user]
- room.message(sntonick(user)+"<f x12F00='1'> ran from <f x1233FFFF='1'>battle",True)
- ##stats
- elif rpgbool==True and cmd =="stats":
- user=user.name.lower()
- if user in rpg:
- weapon , hp , lvl , exp = json.loads(rpg[user])
- room.message(sntonick(user) + "<f x1200F='1'> Weapon : " + weapon +"<f x12F00='1'> Hp: "+str(hp)+"<f x12334433='1'> Lvl : "+str(lvl)+"<f x1233FFFF='1'> Exp : "+str(exp),True)
- else:
- room.message(sntonick(user)+" <f x1200F='1'>You're not listed || <f x12F00='1'>Type .wakeup or .weaponshop <f x12334433='1'>for Join <f x1233FFFF='1'>to RPG GAME!! :)",True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement