OnlyRipper

Member
  • Content Count

    39
  • Joined

  • Last visited

Community Reputation

4 Neutral

About OnlyRipper

  • Rank
    Neutral

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OnlyRipper

    c++ [Release] Cheque system

    Hi again! Could you please attach these files files? I want to compare them,maybe it's something that's missing from my clean source. uiprivateshopbuilder.py uishop.py -Client src PythonShop.cpp PythonShop.h -Server src shop.cpp shop.h shop_manager.cpp shop_manager.h The problem with buying with Won only or Yang and Won still persits....
  2. OnlyRipper

    c++ [Release] Cheque system

    CH syslog: CH syserr: I've put 3 items: 1) 1 Won 2) 1 Won & 1 Yang 3) 1 Yang I could buy only the last 2 of them.The first one didn't want to buy and told me Insufficient Yang. In the syslog it will appear only the 2 and 3 item without marking the difference in Unit Type: Sep 16 00:47:10 :: SHOP: BUY: name Test001 Costum Vanator Dragoni+9(x 1):30001389 price 1 Sep 16 00:47:16 :: SHOP: BUY: name Test001 Sabie Inscriptionata +0(x 1):30001367 price 1 I think my game is the problem.It can't make the difference.Even i've remade the entire tutorial.... Exchange with Won - OK Exchange with Won & Yang - OK Droping Won - OK Droping Won from monsters - OK Max limit 999 - OK Max limit when trade - OK
  3. OnlyRipper

    c++ [Release] Cheque system

    Regarding Server source: In your tutorial in db/ClientManagerPlayer.cpp following this step: /*Search in: void CClientManager::QUERY_PLAYER_LOAD(CPeer * peer, DWORD dwHandle, TPlayerLoadPacket * packet) This: "horse_skill_point " Add after: */ #ifdef ENABLE_CHEQUE_SYSTEM ", cheque " #endif The only place where i have found what you told us to find is this structure inside the void CClientManager::QUERY_PLAYER_LOAD(...): snprintf(queryStr, sizeof(queryStr), "SELECT " "id,name,job,voice,dir,x,y,z,map_index,exit_x,exit_y,exit_map_index,hp,mp,stamina,random_hp,random_sp,playtime," "gold,level,level_step,st,ht,dx,iq,exp," "stat_point,skill_point,sub_skill_point,stat_reset_count,part_base,part_hair," "skill_level,quickslot,skill_group,alignment,mobile,horse_level,horse_riding,horse_hp,horse_hp_droptime,horse_stamina," "UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(last_play),horse_skill_point,cheque FROM player%s WHERE id=%d", GetTablePostfix(), packet->player_id); I'm saying this because you might using a new layout of the same function or the implementation for offlineshop which i don't have. The problem with Buying with Cheque still persists....I don't know what else to do.I've removed first tutorial then i took this one from scratch.Still can't buy with Cheque only or Cheque+Yang. If i buy with Cheque only it tells me Insufficient Yang. If i buy with Cheque + Yang it will take only Yang. ...........
  4. OnlyRipper

    c++ [Release] Cheque system

    Hello! Sorry for my delay.I just want to tell you some minor things that i've noticed during compilnig.I don't want you think i'm acting smart in front of you or something childish like that.I just want to help you like you helped me. In your github tutorial: ->>> PythonShop.h /*--------------------------------------------------*/ /*Search: void AddPrivateShopItemStock(TItemPos ItemPos, BYTE byDisplayPos, DWORD dwPrice); Replace with: */ #ifdef ENABLE_CHEQUE_SYSTEM void AddPrivateShopItemStock(TItemPos ItemPos, BYTE dwDisplayPos, DWORD dwPrice, DWORD); #else void AddPrivateShopItemStock(TItemPos ItemPos, BYTE byDisplayPos, DWORD dwPrice); #endif /*--------------------------------------------------*/ /*Search: int GetPrivateShopItemPrice(TItemPos ItemPos); Replace with: ->>> Add After: */ #ifdef ENABLE_CHEQUE_SYSTEM int GetPrivateShopItemCheque(TItemPos ItemPos); #endif /*--------------------------------------------------*/ There 2nd step should be Add after.Otherwise it won't compile.It will return: GetPrivateShopItemPrice isn't part of : class CPythonShop Now i'm starting with server compiling proceess.I will come back with additionla informatios if it's neccessary.
  5. OnlyRipper

    c++ [Release] Cheque system

    Thank you so much! I will remake it tomorrow because now it's 01:30 AM and i'm tired.I want to follow your tutorial without making silly mistakes.
  6. OnlyRipper

    c++ [Release] Cheque system

    Ok.Thank you for doing this! I literally checked everything line by line to make sure everything is as you did. I've also check unmodified svf regaring normal shop.They are the same without adding Cheque system.That's why i'm confused.At first i tought it's because a new type ITEM_CHEQUE...maybe this is the reason...i'm not sure.
  7. OnlyRipper

    c++ [Release] Cheque system

    Thank you for your support! Do you have any suggestion about the shop problem? Everything is where it should be...I...checked everything.done.I've implemented on a clean svf too,and still the same problem.
  8. OnlyRipper

    c++ [Release] Cheque system

    Sorry to disturb you again.Please believe me when i say that i've rechecked the entire tutorial line by line in the last days...i don't know what i'm doing wrong. I still have two problems left: 1. I don't have implemented offline shop.It's normal shop. If the item price is only won i can't buy it no matter how much low the price of Won is.It tells me i don't have enough Yang. If the item price is with Won and Yang it will buy it with Yang only and it will ignore the Won price. 2. Visual problem: https://imgur.com/1FqK4lE If i remove the cheque from inventory window...i get the following error(so removing it isn't a solution): 0912 19:11:24542 :: uiInventory.py(line:328) __LoadWindow ui.py(line:3227) GetChild InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Cheque' 0912 19:11:24542 :: ============================================================================================================ 0912 19:11:24542 :: Abort!!!! I've also implemented your Expanded Taskbar.It works perfect without errors. Could you please help me?! I don't know what else to do.In the last week i've redone and rechecked everything.I just don't know what else to check..... Exchange is working. Droping the item and picking is working. Quest is working.
  9. OnlyRipper

    c++ [Release] Cheque system

    Ok I've managed to solve the upper problems.It was just a #define problem and i've removed the parts you told me about new exchange window. Still i come with some not working stuff: If an item is in shop-> with 1 Won and 1 Yang i can buy it but won't take won,i can literally buy it with Yang only -> only with Won it says: Insufficient Yang. And the following visual problem. https://imgur.com/2SGCnrs If i remove the 'cheque' part from inventorywindow i get an error and the client crash.
  10. OnlyRipper

    c++ [Release] Cheque system

    It doesn't show in the extended bar,nor the Icon for chque,or the space where the amount should be. When i try to exchange appears only the text for Won nothing more.When i want to insert i can insert only the yang. I've done again at least 5 times the entire tutorial line by line. I've solved the problem with ITEM_CHEQUE. If i modify the amount through navicat in-game i can't see it.I've alost tryed to give myself 1 cheque or 2,but when i check it the set command doesn't do anything... Here's the only error in the chs: SYSERR: Sep 11 00:11:11 :: RunState: LUA_ERROR: [string "cheque_system"]:52: attempt to call field `get_cheque' (a nil value) SYSERR: Sep 11 00:11:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest cheque_system.start click SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE 41aa2c00 mismatch 0xaf != 0x64 header 254 SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE_LOG [UNKNOWN]------------- [254 : 0xaf]
  11. OnlyRipper

    c++ [Release] Cheque system

    SYSERR: Sep 10 06:05:13 :: Start: TABLE_POSTFIX not configured use default SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table: ItemProto Reading Failed : Invalid value. (index: 2, col: 2, value: ITEM_CHEQUE) SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table: 0 ~ 2 Values: 80020,0, I've updated every single line...checked and rechecked....and rechecked and rechecked everything.Updated dump proto.Now what's happening.....very frustrating DB crush if i have this line on my item_proto.txt. If i remove it i can't connect.....
  12. OnlyRipper

    open Question Regarding Syntax

    ----------------------------------- Picture with error: https://imgur.com/nplmQ4i ----------------------------------- Picture without error: https://imgur.com/dk2Z7tJ ----------------------------------- Can someone please explain me why that #ifdef isn't working like a normal if ? Why just changing their position leads to a succesful compile proccess...I just can't figure it out I've also aligned the #ifded & #endif under the pktab-> and it's still the same error.
  13. OnlyRipper

    open KeyError Cheque System

    Jesues....i'm so stupid....thank you it solve that problem. It seems i havne't beend able to make it fully functional. Whenever i open a shop->npc i get these following errors: 0909 01:33:01120 :: Cannot find item by 9600 0909 01:33:01120 :: Cannot find item by 9600 0909 01:33:01122 :: Cannot find item by 1590320653 0909 01:33:01122 :: Cannot find item by 1590320653 0909 01:33:01122 :: Cannot find item by 167772160 0909 01:33:01122 :: Cannot find item by 167772160 0909 01:33:01662 :: Cannot find item by 9600 0909 01:33:02174 :: Cannot find item by 9600 0909 01:33:02702 :: Cannot find item by 9600 0909 01:33:03015 :: Cannot find item by 9600 0909 01:33:03527 :: Cannot find item by 9600 0909 01:33:03741 :: Cannot find item by 9600 Before trying to add this system everything worked perfectly fine.Some of the items are negative....-119199119 ooh boy ^^
  14. OnlyRipper

    open KeyError Cheque System

    For the last 4-5 hours i've ....i don't know what else to do.I've read several different KeyError problems.I still can't figure what i should to next. I've ched the files at least 3 times...i've pack the root...locale...all that needs to be packed. Can someone please help me...? 0908 21:12:12010 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR 0908 21:12:17955 :: Traceback (most recent call last): 0908 21:12:17955 :: File "networkModule.py", line 232, in SetGamePhase 0908 21:12:17955 :: File "game.py", line 95, in __init__ 0908 21:12:17956 :: File "interfaceModule.py", line 414, in MakeInterface 0908 21:12:17956 :: File "interfaceModule.py", line 332, in __MakeDialogs 0908 21:12:17956 :: File "uiExchange.py", line 43, in LoadDialog 0908 21:12:17956 :: File "ui.py", line 3214, in GetChild 0908 21:12:17957 :: KeyError 0908 21:12:17957 :: : 0908 21:12:17957 :: 'Owner_Cheque_Icon' 0908 21:12:17957 ::
  15. OnlyRipper

    c++ [Release] Cheque system

    0908 20:19:15275 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR 0908 20:19:22003 :: Traceback (most recent call last): 0908 20:19:22003 :: File "networkModule.py", line 232, in SetGamePhase 0908 20:19:22003 :: File "game.py", line 95, in __init__ 0908 20:19:22004 :: File "interfaceModule.py", line 414, in MakeInterface 0908 20:19:22004 :: File "interfaceModule.py", line 332, in __MakeDialogs 0908 20:19:22004 :: File "uiExchange.py", line 43, in LoadDialog 0908 20:19:22004 :: File "ui.py", line 3214, in GetChild 0908 20:19:22005 :: KeyError 0908 20:19:22005 :: : 0908 20:19:22005 :: 'Owner_Cheque_Icon' 0908 20:19:22005 :: I've rechecked and all icons are there. I've redone the tutorial 3 times to....after each time i still ahve the same error.