Jump to content

JeeX

Member
  • Posts

    100
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by JeeX

  1. char_horse.cpp - bool CHARACTER::StartRiding() - void CHARACTER::HorseSummon here you have to create a little function to forbid mount/horse & riding there. Best regards.
  2. Hey budys. I have a very important question - and i think the other players wanted also to know! @First my Settup: i have an HP-ProLiant DL380 G6 Server @ home - which has Windows Server 2012 R2 installed. i created a virtual machine with FreeBSD 9.3 under Hyper-V - there are my MT2-Files running. To my Files: - i use Martysama Source - Client (Python) Offical Webzen 03.2018 (cleaned & incl. my changes) -> works flawlessly (locally) But i want to create a DDNS Server, because i want to save costs and i dont want to hire a root! short explain: my server runs 24/7 because there are other server on, so i dont need to hire a root. i usually wants to use this mt2 server on my HP-Server as a test-server for my teammates (not root server for other players). i know, there are many other topics, but i didnt found any solution to fix that problem! So i wanted to create an topic, maybe we find together a solution. My Problem: i can connect with the ddns address in serverinfo.py and im able to choose the character, but if i choose one, i get kicked. My configuration: - Serverip: 192.168.0.100 - IP (bsdconfig): ipv4: 192.168.0.150 netmask: 255.255.255.0 router: 192.168.0.1 nameserver: 192.168.0.1 / 8.8.8.8 / 8.8.4.4 hostname: xxx.ddns.net - Ports are all released in the router / nat (really all!) -> Based on the VM. Now for the really interesting part of the whole thing: some years ago, i startet with mt2 with normal files (without Source) i thing it was (r2089M). other guys had the same problem like me => homeroot with ddns but kick after choosing character. So there was only 1 method to connect: "Surakopf.exe" Then i found an tutorial on ePvpers it called: "[RELEASE]Packet bypass for Homeservers/DynDns" Credits: Anohros (epvpers) I patched my Core and changed the server_start.sh and other players could connect to my server, without problems. So my Question: Is it maybe possible to rework something in source, or change something, that players are able to connect to an DDNS Homeroot without characterkick? Like this tutorial (bypass). Or something to change @config.cpp -> ( g_szPublicIP) ??? This would be great if it would work! - because i found so many Threads about, and no one have a solution for this problem - and still many people looking for this. Sorry for my bad english... Best regards.
  3. omg - brain.exe case AFFECT_BLEEDING: event_cancel(&m_pkBleedingEvent); break;
  4. AttachSash': is not a member of 'CActorInstance' look into your Tutorial an check ActorInstance.h again. (AttachSash is missing)
  5. this is correct, he only includes some lines but (only for proto [Clientside/Serversource]) he includes soulbind and pet lines too - but only 1% from full system! you have to buy a full working system or take the public one <- and include this into your project.
  6. //open char_item.cpp //search: bool CHARACTER::UnEquipSpecialRideUniqueItem() //add avbove: bool CHARACTER::UnEquipCostumeMoudeItem(bool isOnDeath) { LPITEM CostumeMount = GetWear(WEAR_COSTUME_MOUNT); if (NULL != CostumeMount) { if (CostumeMount->IsCostumeMount()) { return UnequipItem(CostumeMount); } } return true; } //open char.h //search: bool UnEquipSpecialRideUniqueItem (); //add: bool UnEquipCostumeMoudeItem(bool isOnDeath);
  7. // open item.h //search: bool IsDragonSoul(); //add under: bool IsCostumeMount() { return GetType() == ITEM_COSTUME && GetSubType() == COSTUME_MOUNT; }
  8. I hope i didn't forgot anything <- //char.cpp //add after includes: bool IsMountable(int map_index, bool isHorse) { if (CArenaManager::instance().IsArenaMap(map_index)) return false; switch (map_index) { case YOUR_MAPINDEX: //edit this <- [e.g. 61 - look @ your map_index] return false; } return true; } //char_item.cpp //add after includes: extern bool IsMountable(int map_index, bool isHorse); //search: bool CHARACTER::CanEquipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell) //add: if (item->IsCostumeMount() && !IsMountable(GetMapIndex(), false)) return false; //input_login.cpp //add after includes: extern bool IsMountable(int map_index, bool isHorse); //search: void CInputLogin::Entergame(LPDESC d, const char * data) if (!IsMountable(ch->GetMapIndex(), false)) ch->UnEquipCostumeMoudeItem(false); //questlua_horse.cpp //add after includes: extern bool IsMountable(int map_index, bool isHorse); //search: ALUA(horse_summon) //add: if (!IsMountable(ch->GetMapIndex(), true)) return 0; //search: ALUA(horse_in_summonable_area) //add: lua_pushboolean(L, IsMountable(ch->GetMapIndex(), isMount)); //questlua_pc.cpp //add after includes: extern bool IsMountable(int map_index, bool isHorse); //search: ALUA(pc_mount) //add: if (!IsMountable(ch->GetMapIndex(), mount_vnum == ch->GetMyHorseVnum())) return 0;
  9. why with quest? do you use source? - its pritty simple to create in c++
  10. Hey guys. i wanted to create a new Function, because @my Project i created a new GMFlag. I created "GM_DEVELOPER" only for Serverowner, now im sitting on the permissions - i wanted to block all situations like (exchange, Storage, drop items and so on...) For example: (Block Friendlist) if (!ch->IsGM() && ch_companion->IsLowLevelGM()) // Player -> GM { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<¸Þ½ÅÁ®> ¿î¿µÀÚ´Â ¸Þ½ÅÁ®¿¡ Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù.")); return sizeof(TPacketCGMessengerAddByVID); } if (ch->IsLowGM() && gm_get_level(name) == GM_PLAYER) // GM -> Player { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GameMasters can't have player friends.")); return CHARACTER_NAME_MAX_LEN; } I created "IsLowLevelGM()" it should only contains GM_LOW_WIZARD up to GM_IMPLEMENTOR My IsLowLevelGM(): BOOL CHARACTER::IsLowLevelGM() const { if (GetGMLevel() >= GM_LOW_WIZARD <= GM_HIGH_WIZARD) return true; return false; } In case of [Adding GM to Friendlist/Adding Players to GM-Friendlist] it is working, adding to guild isnt working, but only drop down is working... The original Function works with "IsGM()" but i only wanted that GM_DEVELOPER" is higher Ranked as GM_IMPLEMENTOR and have more Permissions than GM_IMPLEMENTOR. I wanted with the Dev Rank Full Perm. and only to block for all other gm's My Question - is the IsLowLevelGM() correct? or where is the problem?^^ Thanks!
  11. is there a possibility to use an exception? i only tryed like martys potion on pvp map block.
  12. Hey guys. I wanted to create a exception but my core crashes... here my code: bool IsExceptions(DWORD dwVnum) { switch (dwVnum) { case 30036: return true; } return false; } bool CItem::IsItemBox() { LPITEM item; return (GetType() == ITEM_MATERIAL && !IsExceptions(item->GetVnum())); } i Know the bool IsExceptions isnt correctly... i wanted - that the return will load all items from ITEM_MATERIAL but i want an Exception - he should check if there is a vnum there and if yes he should ignore this vnum So -> [return] Load all from ITEM_MATERIAL but not this item... i tryed with an int function - but i wanted a new function like my bool IsExceptions! - because i need this in more lines and i wanted to create a global one. Someone how could help? Best regards!
  13. Hello, yesterday i includes Lennt - Transmutation System but i have 1 Problem: if i put the transmugged item into the exchange-, shop-, safebox window - it won't display me For example: [Transmutation] Sword+9 <- this will be disappear. In inventory all is working fine. uitooltip: [Hidden Content] Thanks Best regards
  14. re-tipe it - he was only copying it from another Bonus and forgot to change resistance into Strong against. This Tutorial should be work - Take: "Strong Against X: %d%%" & btw - cmd_general part isnt so important. Regards.
  15. Are there any updates yet? Its a rly nice system, but can't use with these problems... Still have no Image after Tooltip Update...
  16. hey, thanks for reply & trying to help. Here is my game Makefile: Here my installed clang Version: :clang --version FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: i386-unknown-freebsd9.3 Thread model: posix
  17. Hey @first sorry for my englisch. I have a problem with my project.. i want to include the "Pseudo-radmon number generation" This is my clang: FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: i386-unknown-freebsd9.3 Thread model: posix in my code there are these lines: std::random_device rd; std::mt19937 gen(rd()); std::discrete_distribution<> d({ 200, 100, 20, 10, 5, 1 }); std i included in gamesource -> stdafx.h with this line: #define std std Error: namespace "std" has no member "random_device" namespace "std" has no member "mt19937" namespace "std" has no member "discrete_distribution" if i want to compile my project i will get these errors: char_item.cpp:8462: error: 'nullptr' was not declared in this scope char_item.cpp:8475: error: 'nullptr' was not declared in this scope char_item.cpp:8582: error: 'nullptr' was not declared in this scope char_item.cpp:8858: error: 'random_device' is not a member of 'std' char_item.cpp:8858: error: expected `;' before 'rd' char_item.cpp:8859: error: 'mt19937' is not a member of 'std' char_item.cpp:8859: error: expected `;' before 'gen' char_item.cpp:8860: error: 'discrete_distribution' is not a member of 'std' char_item.cpp:8860: error: expected primary-expression before '>' token char_item.cpp:8860: error: expected primary-expression before '{' token char_item.cpp:8860: error: 'd' was not declared in this scope char_item.cpp:8862: error: 'gen' was not declared in this scope I looked some C++ Threads and found something like this: "random is not a standard C++ function; it's a POSIX function" "use the new C++11 randomness library." "That header is new to C++11. Try using -std=c++11 or -std=c++0x. Also, make sure your compiler is up to date." i also tryed to include: #include <cstdlib> #include <stdlib.h> #include <random> -> fatal error: 'random' file not found or includes @ CFLAGS: -std=c++11 or -std=c++0x => but only Errors. but nothing helps... Does anyone knows a solution? Best regads!
  18. Image woun't be loadet after update... no syserr i think there is a problem with the new SetPosition & the deleted SetParent? Because, i took the new SetElementImage -> deleted the new line SetPosition and took the old SetParent/SetPosition Now image will be displayed, but no Tooltip maybe this helps to help me..^^
  19. First of all nice system, it's looking nice! but i think i found a bug. For Example: if i spawn the monster 7009 - after 2 seconds the element icons is changing from the yellow to the red one (Fire) in my mob_proto: 7009 => ATT_EARTH So why it is changing the elements?..
  20. Did you changed the packet.h on serversource & binary too? - so on both packet.h files? Because if you have in serversource packet.h 29 and in binary packet.h 30 -> you will get the "Unknown packet header" problem. Best regards.
  21. Hello, im looking for Sash with Scale and Accedrain (fully unbuggy) i've already a sash with scale in my systems, but i have some bugs... i want a full working without bugs sash with sacle i prefer accedrain (accedrain_pct) i dont know if somebody have this, but if yes, please send me a PN ! Please dont sell me offical sash, or crappy coding sash - as i said, i have 1 working version, but with little bugs and without accedrain...! i will pay for Regards
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.