Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem z mapą teleportacji


Rekomendowane odpowiedzi

Opublikowano

Witam, mam taki problem robię sobie mapke teleportacji według tego tutka: [chętnym wyśle na priv bo tutaj nie mogę] i mapka mi nie działa. Po kliknięciu J nic się nie dzieje. Tut wygląda mniej więcej tak:

 

How To:

Unpack root.eix/.epk



open game.py

add:

import uiteleport
Search:

self.__ProcessPreservedServerCommand()
Add under:

self.teleport = uiteleport.TeleportWindow()
Search:

__ServerCommand_Build
Add under:

"Teleport" : self.Teleport,
Search:

OpenQuestWindow(self, skin, idx):
Replace:

def OpenQuestWindow(self, skin, idx):
if constInfo.CApiSetHide == 1:
net.SendQuestInputStringPacket(str(constInfo.SendString))
constInfo.CApiSetHide = 0
return
self.interface.OpenQuestWindow(skin, idx)
Add new function in game.py:

def Teleport(self, getString):
if getString.find("index") != -1:
self.teleport.UpdateIndex(int(getString.split("x")[1]))
else:
constInfo.SendString = str(self.teleport.SendToServer)
constInfo.CApiSetHide = 1
To give a button function to open it you can, for example, how I did it use the J button. For this you need to edit the following function:



kGQxc.png



Fals you want to use a different button, you can do it in the game.py following command to open / close:

self.teleport.Open()
And finally the constInfo.py open and the following reinschreiben above:

CApiSetHide = 0
SendString = ""
bSrQc.jpg



YMcPg.png



q8pob.jpg

The following quest under the Notes "teleport_edit.zip" it adds in euerm orders Quest (Quest by Kilroy.).
If it does not work you have it entered incorrectly say the system.

 

 

A o to syserr: 

 

 

0425 16:02:18952 :: File "game.py", line 1952, in BINARY_ServerCommand_Run

0425 16:02:18952 :: File "stringCommander.py", line 63, in Run

0425 16:02:18952 :: File "stringCommander.py", line 31, in __call__

0425 16:02:18952 :: File "stringCommander.py", line 20, in __call__

0425 16:02:18952 :: File "game.py", line 2227, in __Teleport

0425 16:02:18952 :: ValueError
0425 16:02:18952 :: :
0425 16:02:18952 :: invalid literal for int() with base 10: 'index87'
0425 16:02:18952 ::

0425 16:02:18952 :: Unknown Server Command Teleport index87 | Teleport

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...