- Mesajlar
- 485
- En iyi cevaplar
- 83
- Beğeniler
- 444
- Puanları
- 3,190
- Ruh hali
Sunucusuna Funcorp eklemek isteyen oyuncularımız için, bir sürü funcorp komutu. Sizin sourceniz ile uyuşmayabilir, ufak hatalar çıkarsa ; Discord : Sukelaci#0001
Python:
elif command in ["funcorp"]:
if len(args) > 0:
if (this.client.room.roomName == "*strm_" + this.client.playerName.lower()) or this.client.privLevel >= 4 or this.client.isFuncorp:
if args[0] == "on" and not this.client.privLevel == 1:
this.client.room.isFuncorp = True
this.client.enterRoom("survivor_funcorp" if command == "on" else "survivor_funcorp")
for player in this.client.room.clients.values():
player.sendLangueMessage("", "<FC>$FunCorpActive</FC>")
elif args[0] == "off" and not this.client.privLevel == 1:
this.client.room.isFuncorp = False
this.client.enterRoom("1" if command == "off" else "1")
for player in this.client.room.clients.values():
player.sendLangueMessage("", "<FC>$FunCorpDesactive</FC>")
elif args[0] == "fchelp":
this.client.sendLogMessage(this.sendListFCHelp())
else:
this.client.sendMessage("Wrong parameters.")
elif command in ["changesize", "size"]:
if this.client.privLevel >= 4:
playerName = Utils.parsePlayerName(args[0])
this.client.playerSize = 1.0 if args[1] == "off" else (500.0 if float(args[1]) > 500.0 else float(args[1]))
if args[1] == "off":
this.client.sendMessage("All players now have their regular size.")
this.client.room.sendAll(Identifiers.send.Mouse_Size, ByteArray().writeInt(player.playerCode).writeUnsignedShort(float(1)).writeBoolean(False).toByteArray())
elif this.client.playerSize >= float(0.1) or this.client.playerSize <= float(5.0):
if playerName == "*":
for player in this.client.room.clients.values():
this.client.room.sendAll(Identifiers.send.Mouse_Size, ByteArray().writeInt(player.playerCode).writeUnsignedShort(int(this.client.playerSize * 100)).writeBoolean(False).toByteArray())
else:
player = this.server.players.get(playerName)
if player != None:
this.client.sendMessage("The following players now have the size " + str(this.client.playerSize) + ": <BV>" + str(player.playerName) + "</BV>")
this.client.room.sendAll(Identifiers.send.Mouse_Size, ByteArray().writeInt(player.playerCode).writeUnsignedShort(int(this.client.playerSize * 100)).writeBoolean(False).toByteArray())
else:
this.client.sendMessage("Invalid size.")
else:
this.client.sendMessage("FunCorp commands work only when the room is in FunCorp mode.")
elif command in ["changenick"]:
if this.client.privLevel >= 4 or this.client.isFuncorp:
playerName = Utils.parsePlayerName(args[0])
player = this.server.players.get(playerName)
if player != None:
player.playerName = playerName if args[1] == "off" else argsNotSplited.split(" ", 1)[1]
player.sendLangueMessage("", "<ROSE>Adınız şu şekilde güncellendi bu adı beğenmediyseniz yetkiliye bildiriniz")
for playert in this.client.room.clients.values():
playert.sendLangueMessage("", "<ROSE>Yetkili odada bir oyuncunun ismini " +str(this.client.playerName)+ " olarak değiştirdi.")
elif command in ["cat"]:
if this.client.privLevel >= 10:
this.client.room.sendAll([5, 43], ByteArray().writeInt(this.client.playerCode).writeByte(1).toByteArray())
elif command in ["startsnow", "stopsnow"]:
if this.client.privLevel >= 8 or this.requireTribe(True):
this.client.room.startSnow(1000, 60, not this.client.room.isSnowing)
elif command in ["şarkı", "music"]:
if this.client.privLevel >= 8 or this.requireTribe(True):
if len(args) == 0:
this.client.room.sendAll(Identifiers.old.send.Music, [])
else:
this.client.room.sendAll(Identifiers.old.send.Music, [args[0]])
elif command in ["vamp"]:
if this.client.privLevel >= 5:
if len(args) == 0:
if this.client.privLevel >= 2:
if this.client.room.numCompleted > 1 or this.client.privLevel >= 9:
this.client.sendVampireMode(False)
else:
if this.client.privLevel >= 6:
playerName = Utils.parsePlayerName(args[0])
player = this.server.players.get(playerName)
if player != None:
player.sendVampireMode(False)
elif command in ["meep"]:
if this.client.privLevel >= 5 or this.client.privLevel >= 4:
if len(args) == 0:
if this.client.privLevel >= 2:
if this.client.room.numCompleted > 1 or this.client.privLevel >= 9:
this.client.sendPacket(Identifiers.send.Can_Meep, 1)
else:
playerName = Utils.parsePlayerName(args[0])
if playerName == "*":
for player in this.client.room.clients.values():
player.sendPacket(Identifiers.send.Can_Meep, 1)
else:
player = this.server.players.get(playerName)
if player != None:
player.sendPacket(Identifiers.send.Can_Meep, 1)
elif command in ["pink"]:
if this.client.privLevel >= 3:
this.client.room.sendAll(Identifiers.send.Player_Damanged, ByteArray().writeInt(this.client.playerCode).toByteArray())
elif command in ["transformation"]:
if this.client.privLevel >= 9:
if len(args) == 0:
if this.client.privLevel >= 2:
if this.client.room.numCompleted > 1 or this.client.privLevel >= 9:
this.client.sendPacket(Identifiers.send.Can_Transformation, 1)
else:
playerName = Utils.parsePlayerName(args[0])
if playerName == "*":
for player in this.client.room.clients.values():
player.sendPacket(Identifiers.send.Can_Transformation, 1)
else:
player = this.server.players.get(playerName)
if player != None:
player.sendPacket(Identifiers.send.Can_Transformation, 1)