- ********************************************SERVERSRC********************************************
- common/service.h
- #define REMOTE_TRADE_SYSTEM
- ekle.
- exchange.cpp aç ve arat ;
- if (iDist >= EXCHANGE_MAX_DISTANCE)
- değiştir;
- #ifdef REMOTE_TRADE_SYSTEM
- // if (iDist >= EXCHANGE_MAX_DISTANCE)
- // return false;
- #else
- if (iDist >= EXCHANGE_MAX_DISTANCE)
- return false;
- #endif
- gamesrc/cmd.cpp aç ve arat
- ACMD(do_mall_close);
- altına ekle;
- #ifdef REMOTE_TRADE_SYSTEM
- ACMD(do_uzaktan_ticaret);
- ACMD(do_uzaktan_ticaret_hayir);
- ACMD(do_uzaktan_ticaret_kabul);
- #endif
- arat;
- { "mall_close", do_mall_close, 0, POS_DEAD, GM_PLAYER },
- altına ekle;
- #ifdef REMOTE_TRADE_SYSTEM
- { "uzaktan_ticaret", do_uzaktan_ticaret, 0, POS_DEAD, GM_PLAYER },
- { "uzaktan_ticaret_hayir", do_uzaktan_ticaret_hayir, 0, POS_DEAD, GM_PLAYER },
- { "uzaktan_ticaret_kabul", do_uzaktan_ticaret_kabul, 0, POS_DEAD, GM_PLAYER },
- #endif
- cmd_general.cpp aç ve arat;
- ACMD(do_unmount)
- kod bloğu bitimine ekle;
- #ifdef REMOTE_TRADE_SYSTEM
- ACMD(do_uzaktan_ticaret_hayir)
- {
- char hedef[256];
- one_argument(argument, hedef, sizeof(hedef));
- LPCHARACTER kimsin = CHARACTER_MANAGER::instance().FindPC(hedef);
- CCI * farklich = P2P_MANAGER::instance().Find(hedef);
- /////////////////////////////////////////////////////////////////////////
- if(ch->IsDead() || ch->GetMyShop() || ch->GetShopOwner() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->IsAcceOpen() || ch->GetOfflineShopOwner())
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("다른 거래중(창고,교환,상점)에는 개인상점을 사용할 수 없습니다."));
- return;
- }
- if (ch->GetMapIndex() >= 10000 || ch->GetMapIndex() == 201 || ch->GetMapIndex() == 113 || ch->GetMapIndex() == 207 || ch->GetMapIndex() == 216 || ch->GetMapIndex() == 217 || ch->GetMapIndex() == 235 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 223 || ch->GetMapIndex() == 353 || ch->GetMapIndex() == 354 || ch->GetMapIndex() == 355 || ch->GetMapIndex() == 357 || ch->GetMapIndex() == 212 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 352 || ch->GetMapIndex() == 66 || ch->GetMapIndex() == 246 || ch->GetMapIndex() == 4 || ch->GetMapIndex() == 24 || ch->GetMapIndex() == 44 || ch->GetMapIndex() == 81 || ch->GetMapIndex() == 103 || ch->GetMapIndex() == 105 || ch->GetMapIndex() == 112 || ch->GetMapIndex() == 114 || ch->GetMapIndex() == 118 || ch->GetMapIndex() == 119 || ch->GetMapIndex() == 120 || ch->GetMapIndex() == 121 || ch->GetMapIndex() == 122 || ch->GetMapIndex() == 123 || ch->GetMapIndex() == 124 || ch->GetMapIndex() == 125 || ch->GetMapIndex() == 126 || ch->GetMapIndex() == 127 || ch->GetMapIndex() == 128 || ch->GetMapIndex() == 181 || ch->GetMapIndex() == 182 || ch->GetMapIndex() == 183 || ch->GetMapIndex() == 200)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("BU_HARITADA_UZAKTAN_TICARET_ACILAMAZ"));
- return;
- }
- if (!ch)
- return;
- if (!ch->IsPC())
- return;
- if (ch->IsHack())
- return;
- if (kimsin == ch)
- {
- return;
- }
- if (!*hedef)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("HATALI_KULLANIM"));
- return;
- }
- if (kimsin)
- {
- kimsin->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_UZAKTAN_TICARETI_REDDETTI"), ch->GetName());
- }
- else if (!kimsin)
- {
- if (farklich)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_ILE_AYNI_CHDE_DEGILSIN"), kimsin->GetName());
- return;
- }
- else
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_OYUNDA_DEGIL"), hedef);
- }
- }
- }
- ACMD(do_uzaktan_ticaret_kabul)
- {
- char hedef[256];
- one_argument(argument, hedef, sizeof(hedef));
- LPCHARACTER kimsin = CHARACTER_MANAGER::instance().FindPC(hedef);
- CCI * farklich = P2P_MANAGER::instance().Find(hedef);
- /////////////////////////////////////////////////////////////////
- if(ch->IsDead() || ch->GetMyShop() || ch->GetShopOwner() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->IsAcceOpen() || ch->GetOfflineShopOwner())
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("다른 거래중(창고,교환,상점)에는 개인상점을 사용할 수 없습니다."));
- return;
- }
- if (ch->GetMapIndex() >= 10000 || ch->GetMapIndex() == 201 || ch->GetMapIndex() == 113 || ch->GetMapIndex() == 207 || ch->GetMapIndex() == 216 || ch->GetMapIndex() == 217 || ch->GetMapIndex() == 235 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 223 || ch->GetMapIndex() == 353 || ch->GetMapIndex() == 354 || ch->GetMapIndex() == 355 || ch->GetMapIndex() == 357 || ch->GetMapIndex() == 212 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 352 || ch->GetMapIndex() == 66 || ch->GetMapIndex() == 246 || ch->GetMapIndex() == 4 || ch->GetMapIndex() == 24 || ch->GetMapIndex() == 44 || ch->GetMapIndex() == 81 || ch->GetMapIndex() == 103 || ch->GetMapIndex() == 105 || ch->GetMapIndex() == 112 || ch->GetMapIndex() == 114 || ch->GetMapIndex() == 118 || ch->GetMapIndex() == 119 || ch->GetMapIndex() == 120 || ch->GetMapIndex() == 121 || ch->GetMapIndex() == 122 || ch->GetMapIndex() == 123 || ch->GetMapIndex() == 124 || ch->GetMapIndex() == 125 || ch->GetMapIndex() == 126 || ch->GetMapIndex() == 127 || ch->GetMapIndex() == 128 || ch->GetMapIndex() == 181 || ch->GetMapIndex() == 182 || ch->GetMapIndex() == 183 || ch->GetMapIndex() == 200)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("BU_HARITADA_UZAKTAN_TICARET_ACILAMAZ"));
- return;
- }
- if (!ch)
- return;
- if (!ch->IsPC())
- return;
- if (ch->IsHack())
- return;
- if (kimsin == ch)
- {
- return;
- }
- if (!*hedef)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("HATALI_KULLANIM"));
- return;
- }
- if (kimsin)
- {
- ch->ExchangeStart(kimsin);
- }
- else if (!kimsin)
- {
- if (farklich)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_ILE_AYNI_CHDE_DEGILSIN"), kimsin->GetName());
- return;
- }
- else
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_OYUNDA_DEGIL"), hedef);
- }
- }
- }
- ACMD(do_uzaktan_ticaret)
- {
- char arg1[256];
- one_argument(argument, arg1, sizeof(arg1));
- LPCHARACTER kimsin = CHARACTER_MANAGER::instance().FindPC(arg1);
- ////////////////////////////////////////////////////////////////////
- if(ch->IsDead() || ch->GetMyShop() || ch->GetShopOwner() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->IsAcceOpen() || ch->GetOfflineShopOwner())
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("다른 거래중(창고,교환,상점)에는 개인상점을 사용할 수 없습니다."));
- return;
- }
- if (ch->GetMapIndex() >= 10000 || ch->GetMapIndex() == 201 || ch->GetMapIndex() == 113 || ch->GetMapIndex() == 207 || ch->GetMapIndex() == 216 || ch->GetMapIndex() == 217 || ch->GetMapIndex() == 235 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 223 || ch->GetMapIndex() == 353 || ch->GetMapIndex() == 354 || ch->GetMapIndex() == 355 || ch->GetMapIndex() == 357 || ch->GetMapIndex() == 212 || ch->GetMapIndex() == 241 || ch->GetMapIndex() == 352 || ch->GetMapIndex() == 66 || ch->GetMapIndex() == 246 || ch->GetMapIndex() == 4 || ch->GetMapIndex() == 24 || ch->GetMapIndex() == 44 || ch->GetMapIndex() == 81 || ch->GetMapIndex() == 103 || ch->GetMapIndex() == 105 || ch->GetMapIndex() == 112 || ch->GetMapIndex() == 114 || ch->GetMapIndex() == 118 || ch->GetMapIndex() == 119 || ch->GetMapIndex() == 120 || ch->GetMapIndex() == 121 || ch->GetMapIndex() == 122 || ch->GetMapIndex() == 123 || ch->GetMapIndex() == 124 || ch->GetMapIndex() == 125 || ch->GetMapIndex() == 126 || ch->GetMapIndex() == 127 || ch->GetMapIndex() == 128 || ch->GetMapIndex() == 181 || ch->GetMapIndex() == 182 || ch->GetMapIndex() == 183 || ch->GetMapIndex() == 200)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("BU_HARITADA_UZAKTAN_TICARET_ACILAMAZ"));
- return;
- }
- if (!*arg1)
- return;
- if (!ch)
- return;
- if (!ch->IsPC())
- return;
- if (ch->IsHack())
- return;
- if (kimsin == ch)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("KENDINE_UZAKTAN_TICARET_ATAMASSIN"));
- return;
- }
- if (kimsin == NULL || !kimsin)
- {
- CCI* farklich = P2P_MANAGER::instance().Find(arg1);
- if (!farklich || farklich == NULL)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상대방이 온라인 상태가 아닙니다."));
- return;
- }
- else
- {
- if (farklich->bChannel != g_bChannel)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상대방이 %d 채널에 있습니다. (현재 채널 %d)"), farklich->bChannel, g_bChannel);
- return;
- }
- else
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("AYNI_HARITADA_DEGILSINIZ"));
- return;
- }
- }
- }
- else
- {
- if (kimsin->IsBlockMode(BLOCK_EXCHANGE))
- {
- kimsin->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ADLI_OYUNCU_UZAKTAN_TICARETI_REDDETT?"),ch->GetName());
- return;
- }
- if (kimsin->IsHack())
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("OYUNCU_ZATEN_TICARET_YAPIYOR"));
- return;
- }
- if (kimsin)
- kimsin->ChatPacket(CHAT_TYPE_COMMAND, "sorgu %s %d", ch->GetName(), ch->GetLevel());
- }
- }
- #endif
- clientsrc/pythonnetworkstreamphasegame.cpp
- aç
- if (pCharacterInstance)
- CPythonExchange::Instance().SetTargetName(pCharacterInstance->GetNameString());
- CPythonExchange::Instance().SetTargetLevel(pCharacterInstance->GetLevel());
- bul değiştir
- if (pCharacterInstance)
- {
- CPythonExchange::Instance().SetTargetName(pCharacterInstance->GetNameString());
- CPythonExchange::Instance().SetTargetLevel(pCharacterInstance->GetLevel());
- }
- ********************************************SERVERSRC********************************************
- game.py aç ve arat
- "ConsoleEnable" : self.__Console_Enable,
- altına ekle;
- "sorgu" : self.Uzaktan_ticaret_soru,
- arat;
- # END_OF_WEDDING
- altına ekle veya game.py en alta fark etmez;
- def Uzaktan_ticaret_soru(self, isim, level):
- uzaktan_sorusu = uiCommon.QuestionDialog()
- uzaktan_sorusu.SetText("|cffFDD017|H|h" + str(isim)+ "|cff00ccff" + "(Lv."+str(level)+")"+ "|h|r" + " Seninle uzaktan ticaret yapmak istiyor.")
- uzaktan_sorusu.SetAcceptEvent(lambda arg=TRUE: self.kabul(isim))
- uzaktan_sorusu.SetCancelEvent(lambda arg=FALSE: self.hayir(isim))
- uzaktan_sorusu.Open()
- self.uzaktan_sorusu = uzaktan_sorusu
- return
- def kabul(self, isim):
- net.SendChatPacket("/uzaktan_ticaret_kabul " + str(isim))
- self.uzaktan_sorusu.Close()
- def hayir(self, isim):
- net.SendChatPacket("/uzaktan_ticaret_hayir " + str(isim))
- self.uzaktan_sorusu.Close()
- uiwhisper.py aç ve arat
- def ReportViolentWhisper(self):
- net.SendChatPacket("/reportviolentwhisper " + self.targetName)
- altına ekle;
- def uzaktanticaret_black(self):
- net.SendChatPacket("/uzaktan_ticaret " + self.targetName)
- arat; self.titleNameEdit.Show()
- altına ekle; self.uzaktan.Hide()
- arat; self.minimizeButton.Show()
- altına ekle;
- self.uzaktan.Show()
- self.uzaktan.SetText("U.Ticaret")
- arat;
- self.titleNameEdit.Hide()
- altına ekle;
- self.uzaktan.Hide()
- arat;
- self.sendButton = None
- altına ekle;
- self.uzaktan = None
- arat;
- self.titleNameEdit.SetEscapeEvent(ui.__mem_func__(self.Close))
- altına ekle;
- self.uzaktan.SetEvent(ui.__mem_func__(self.uzaktanticaret_black))
- arat;
- self.minimizeButton = GetObject("minimizebutton")
- altına ekle;
- self.uzaktan = GetObject("uzaktan")
- uiscript/whisperdialog.py aç ve arat;
- {
- "name" : "acceptbutton",
- "type" : "button",
- "x" : 145,
- "y" : 10,
- "text" : uiScriptLocale.OK,
- "default_image" : "d:/ymir work/ui/public/small_thin_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/small_thin_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/small_thin_button_03.sub",
- },
- altına ekle;
- {
- "name" : "uzaktan",
- "type" : "button",
- "x" : 197,
- "y" : 10,
- "default_image" : "d:/ymir work/ui/public/small_thin_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/small_thin_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/small_thin_button_03.sub",
- },
- locale_String.txt
- "HATALI_KULLANIM";
- "[Bilgi] Bunu yapamassın";
- "%s ADLI_OYUNCU_UZAKTAN_TICARETI_REDDETTI";
- "[Bilgi] %s adlı oyuncu uzaktan ticareti reddetti!";
- "%s ADLI_OYUNCU_ILE_AYNI_CHDE_DEGILSIN";
- "[Bilgi] %s adlı oyuncu ile aynı ch'de değilsin!";
- "%s ADLI_OYUNCU_OYUNDA_DEGIL";
- "[Bilgi] %s adlı oyuncu oyunda aktif değil!";
- "AYNI_HARITADA_DEGILSINIZ";
- "[Bilgi] Uzaktan ticaret gönderebilmek için aynı haritada değilsiniz!";
- "OYUNCU_ZATEN_TICARET_YAPIYOR";
- "[Bilgi] Oyuncu zaten ticaret yapıyor!";
- "BU_HARITADA_UZAKTAN_TICARET_ACILAMAZ";
- "[Bilgi] Bu haritada uzaktan ticaret kullanamassın!";
- "KENDINE_UZAKTAN_TICARET_ATAMASSIN";
- "[Bilgi] Kendine uzaktan ticaret atamassın!";
- "%s ADLI_OYUNCUYA_UZAKTAN_TICARET_GONDERILDI";
- "[Bilgi] %s adlı oyuncuya uzaktan ticaret gönderildi.";