Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
C.Marius
Nivel 4
Mesaje: 689 Membru din: 28 Sep 2014, 16:21
Server: orice
Regat: Jinno
Aprecieri:
7
Mulţumiri:
1027
Contact:
01 Iun 2015, 12:18
Salutare
As vrea si eu un quest sa deschid swichul de la un npc.Cand dai click pe npc sa se deschida acea fereastra.
Stie cineva cum pot face asa ceva?
Stiu ca era cceva gen command sau cum?
Astept un raspuns
Uitati un ex in acest video: Cand ala da click pe npc se deschide acel sistem
VIDEO
Morphe
Nivel 3
Mesaje: 318 Membru din: 14 Dec 2014, 16:52
Aprecieri:
0
Mulţumiri:
2
01 Iun 2015, 12:30
Comunicare Server-Client
În def __ServerCommand_Build(self):
Adaugi de exemplu:
Apoi faci un def care deschide acel sistem.
Quest:
Cod: Selectaţi tot
quest exemplu begin
state start begin
when npc.click begin
cmdchat("StartSwitchbot")
end
end
end
C.Marius
Nivel 4
Mesaje: 689 Membru din: 28 Sep 2014, 16:21
Server: orice
Regat: Jinno
Aprecieri:
7
Mulţumiri:
1027
Contact:
01 Iun 2015, 12:37
Ms o sa incerc
Edit:Dar mai am o intrebare.daca am un sistem luat de undeva , am toate fisierle lui pt root
dar pb e ca nu am chestia asemanatoare cu asta
"StartSwitchbot" : self.__StartSwitchbot,
cum aflu acest lucru?
Morphe
Nivel 3
Mesaje: 318 Membru din: 14 Dec 2014, 16:52
Aprecieri:
0
Mulţumiri:
2
01 Iun 2015, 17:58
game.py
În def __ServerCommand_Build(self):
La sfârșit de tot adaugi:
Cod: Selectaţi tot
def __StartAuctionWindow
self.gui = uiauction.AuctionWindow()
self.gui.Show()
Quest
Cod: Selectaţi tot
quest exemplu begin
state start begin
when npc.click begin
cmdchat("StartAuction")
end
end
end
C.Marius
Nivel 4
Mesaje: 689 Membru din: 28 Sep 2014, 16:21
Server: orice
Regat: Jinno
Aprecieri:
7
Mulţumiri:
1027
Contact:
01 Iun 2015, 19:12
Ms
, dar am o problema.
Intru in client aleg caracterul , se incarca complet bara si asa ramane.
Ce sa fac
Morphe
Nivel 3
Mesaje: 318 Membru din: 14 Dec 2014, 16:52
Aprecieri:
0
Mulţumiri:
2
02 Iun 2015, 14:23
Data viitoare se pune și syserr.. bine că am văzut că am greșit ceva
uite
refă asta
def __StartAuctionWindow
import uiauction
self.gui = uiauction.AuctionWindow()
self.gui.Show()
Uitasem să dau import
C.Marius
Nivel 4
Mesaje: 689 Membru din: 28 Sep 2014, 16:21
Server: orice
Regat: Jinno
Aprecieri:
7
Mulţumiri:
1027
Contact:
02 Iun 2015, 14:49
Tot nu merge
Syseer:
Cod: Selectaţi tot
0602 15:42:00030 :: import marshal # builtin
0602 15:42:00030 :: import imp # builtin
0602 15:42:00066 :: ui.py: inconsistent use of tabs and spaces in indentation
0602 15:42:00110 :: import _weakref # builtin
0602 15:42:00354 :: # trying .\os.pyd
0602 15:42:00354 :: # trying .\os.py
0602 15:42:00354 :: # trying .\os.pyw
0602 15:42:00354 :: # trying .\os.pyc
0602 15:42:00354 :: # trying lib\os.pyd
0602 15:42:00354 :: # trying lib\os.py
0602 15:42:00354 :: # lib\os.pyc has bad magic
0602 15:42:00367 :: import os # from lib\os.py
0602 15:42:00367 :: import errno # builtin
0602 15:42:00367 :: import nt # builtin
0602 15:42:00367 :: # trying .\ntpath.pyd
0602 15:42:00368 :: # trying .\ntpath.py
0602 15:42:00368 :: # trying .\ntpath.pyw
0602 15:42:00368 :: # trying .\ntpath.pyc
0602 15:42:00368 :: # trying lib\ntpath.pyd
0602 15:42:00368 :: # trying lib\ntpath.py
0602 15:42:00368 :: # lib\ntpath.pyc has bad magic
0602 15:42:00380 :: import ntpath # from lib\ntpath.py
0602 15:42:00380 :: # trying .\stat.pyd
0602 15:42:00380 :: # trying .\stat.py
0602 15:42:00380 :: # trying .\stat.pyw
0602 15:42:00380 :: # trying .\stat.pyc
0602 15:42:00380 :: # trying lib\stat.pyd
0602 15:42:00380 :: # trying lib\stat.py
0602 15:42:00380 :: # lib\stat.pyc has bad magic
0602 15:42:00382 :: import stat # from lib\stat.py
0602 15:42:00382 :: # trying .\genericpath.pyd
0602 15:42:00382 :: # trying .\genericpath.py
0602 15:42:00382 :: # trying .\genericpath.pyw
0602 15:42:00382 :: # trying .\genericpath.pyc
0602 15:42:00382 :: # trying lib\genericpath.pyd
0602 15:42:00382 :: # trying lib\genericpath.py
0602 15:42:00382 :: # lib\genericpath.pyc has bad magic
0602 15:42:00384 :: import genericpath # from lib\genericpath.py
0602 15:42:00384 :: # trying .\warnings.pyd
0602 15:42:00384 :: # trying .\warnings.py
0602 15:42:00384 :: # trying .\warnings.pyw
0602 15:42:00384 :: # trying .\warnings.pyc
0602 15:42:00385 :: # trying lib\warnings.pyd
0602 15:42:00385 :: # trying lib\warnings.py
0602 15:42:00385 :: # lib\warnings.pyc has bad magic
0602 15:42:00393 :: import warnings # from lib\warnings.py
0602 15:42:00394 :: # trying .\linecache.pyd
0602 15:42:00394 :: # trying .\linecache.py
0602 15:42:00394 :: # trying .\linecache.pyw
0602 15:42:00394 :: # trying .\linecache.pyc
0602 15:42:00394 :: # trying lib\linecache.pyd
0602 15:42:00395 :: # trying lib\linecache.py
0602 15:42:00395 :: # lib\linecache.pyc has bad magic
0602 15:42:00397 :: import linecache # from lib\linecache.py
0602 15:42:00397 :: # trying .\types.pyd
0602 15:42:00397 :: # trying .\types.py
0602 15:42:00397 :: # trying .\types.pyw
0602 15:42:00397 :: # trying .\types.pyc
0602 15:42:00397 :: # trying lib\types.pyd
0602 15:42:00397 :: # trying lib\types.py
0602 15:42:00397 :: # lib\types.pyc has bad magic
0602 15:42:00399 :: import types # from lib\types.py
0602 15:42:00400 :: # trying .\UserDict.pyd
0602 15:42:00400 :: # trying .\UserDict.py
0602 15:42:00400 :: # trying .\UserDict.pyw
0602 15:42:00400 :: # trying .\UserDict.pyc
0602 15:42:00400 :: # trying lib\UserDict.pyd
0602 15:42:00400 :: # trying lib\UserDict.py
0602 15:42:00400 :: # lib\UserDict.pyc has bad magic
0602 15:42:00403 :: import UserDict # from lib\UserDict.py
0602 15:42:00403 :: # trying .\_abcoll.pyd
0602 15:42:00403 :: # trying .\_abcoll.py
0602 15:42:00404 :: # trying .\_abcoll.pyw
0602 15:42:00404 :: # trying .\_abcoll.pyc
0602 15:42:00404 :: # trying lib\_abcoll.pyd
0602 15:42:00404 :: # trying lib\_abcoll.py
0602 15:42:00404 :: # lib\_abcoll.pyc has bad magic
0602 15:42:00415 :: import _abcoll # from lib\_abcoll.py
0602 15:42:00415 :: # trying .\abc.pyd
0602 15:42:00415 :: # trying .\abc.py
0602 15:42:00415 :: # trying .\abc.pyw
0602 15:42:00415 :: # trying .\abc.pyc
0602 15:42:00415 :: # trying lib\abc.pyd
0602 15:42:00415 :: # trying lib\abc.py
0602 15:42:00416 :: # lib\abc.pyc has bad magic
0602 15:42:00419 :: import abc # from lib\abc.py
0602 15:42:00419 :: # trying .\_weakrefset.pyd
0602 15:42:00419 :: # trying .\_weakrefset.py
0602 15:42:00419 :: # trying .\_weakrefset.pyw
0602 15:42:00419 :: # trying .\_weakrefset.pyc
0602 15:42:00419 :: # trying lib\_weakrefset.pyd
0602 15:42:00419 :: # trying lib\_weakrefset.py
0602 15:42:00419 :: # lib\_weakrefset.pyc has bad magic
0602 15:42:00423 :: import _weakrefset # from lib\_weakrefset.py
0602 15:42:00426 :: # trying .\copy_reg.pyd
0602 15:42:00426 :: # trying .\copy_reg.py
0602 15:42:00427 :: # trying .\copy_reg.pyw
0602 15:42:00427 :: # trying .\copy_reg.pyc
0602 15:42:00427 :: # trying lib\copy_reg.pyd
0602 15:42:00427 :: # trying lib\copy_reg.py
0602 15:42:00428 :: # lib\copy_reg.pyc has bad magic
0602 15:42:00431 :: import copy_reg # from lib\copy_reg.py
0602 15:42:00473 :: import time # builtin
0602 15:43:11377 :: import math # builtin
0602 15:43:11505 :: uiTaskBar.py: inconsistent use of tabs and spaces in indentation
0602 15:43:11548 :: uiDragonSoul.py: inconsistent use of tabs and spaces in indentation
0602 15:43:11612 :: uiSystem.py: inconsistent use of tabs and spaces in indentation
0602 15:43:11692 :: uiQuest.py: inconsistent use of tabs and spaces in indentation
0602 15:43:21776 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
0602 15:43:32858 :: game.py: inconsistent use of tabs and spaces in indentation
0602 15:43:32870 :: Traceback (most recent call last):
0602 15:43:32870 :: File "networkModule.py", line 237, in SetGamePhase
0602 15:43:32870 :: File "system.py", line 130, in __pack_import
0602 15:43:32870 :: File "
0602 15:43:32870 :: game.py
0602 15:43:32870 :: ", line
0602 15:43:32870 :: 2355
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 :: def __StartAuctionWindow
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 ::
0602 15:43:32870 :: ^
0602 15:43:32870 :: SyntaxError
0602 15:43:32870 :: :
0602 15:43:32870 :: invalid syntax
0602 15:43:32870 ::
0602 15:47:21193 :: game.py: inconsistent use of tabs and spaces in indentation
0602 15:47:21207 :: Traceback (most recent call last):
0602 15:47:21207 :: File "networkModule.py", line 237, in SetGamePhase
0602 15:47:21207 :: File "system.py", line 130, in __pack_import
0602 15:47:21207 :: File "
0602 15:47:21207 :: game.py
0602 15:47:21207 :: ", line
0602 15:47:21207 :: 2355
0602 15:47:21207 ::
0602 15:47:21207 ::
0602 15:47:21207 :: def __StartAuctionWindow
0602 15:47:21207 ::
0602 15:47:21207 ::
0602 15:47:21207 ::
0602 15:47:21207 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 ::
0602 15:47:21208 :: ^
0602 15:47:21208 :: SyntaxError
0602 15:47:21208 :: :
0602 15:47:21208 :: invalid syntax
0602 15:47:21208 ::
Morphe
Nivel 3
Mesaje: 318 Membru din: 14 Dec 2014, 16:52
Aprecieri:
0
Mulţumiri:
2
C.Marius
Nivel 4
Mesaje: 689 Membru din: 28 Sep 2014, 16:21
Server: orice
Regat: Jinno
Aprecieri:
7
Mulţumiri:
1027
Contact:
Morphe
Nivel 3
Mesaje: 318 Membru din: 14 Dec 2014, 16:52
Aprecieri:
0
Mulţumiri:
2
04
Noi
Răspunsuri 12
Vizualizări 763
13
Mar
Răspunsuri 2
Vizualizări 152
24
Noi
Răspunsuri 4
Vizualizări 452
27
Ian
Răspunsuri 8
Vizualizări 510
Utilizatori ce ce navighează pe acest forum: Baidu [Spider] , sanducatalin1 și 32 vizitatori