Jump to content

blaxis

Active+ Member
  • Posts

    222
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by blaxis

  1. Hi, I need check MySQL -> item -> window type from 50264 vnum item. Examp: char_item.cpp UseItemEx in CASE 50264: if (XXX == window_type) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("bla_bla_bla")); return false; } window_type = mysql -> item -> in 'window' column I try this; TItemPos Cell; BYTE window_type = Cell.window_type; if (MALL == window_type) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("bla_bla_bla")); return false; } but didn't work. Pls help me? Sorry for my bad english.
  2. Hello there. I'm trying to add a system but couldn't solve these errors. 'Button' object has no attribute 'DisableFlash' 'EditLine' object has no attribute 'GetTextLineCount' DisableFlash and GetTextLineCount It's not in my files. How can I add these two?
  3. First of all, thank you very much. item->GetName(); I edited all the lines containing it to CHAT_TYPE_ITEM_INFO but it's not working.. I think this happened after uninstalling DICE. I just removed it from uichat.py. I've never installed dice before, but are there still places where I need to remove it from the source codes? Maybe the line numbers don't match. All other features are working but the "Item" feature is not.
  4. Hello, I am having mirroring problem in evolution system. #ifdef ENABLE_WEAPON_EVOLUTION_SYSTEM len = snprintf(itemlink, sizeof(itemlink), "item:%x:%x:%x:%x:%x:%d", pPlayerItem->vnum, pPlayerItem->flags, pPlayerItem->alSockets[0], pPlayerItem->alSockets[1], pPlayerItem->alSockets[2], pPlayerItem->evolution); #else len = snprintf(itemlink, sizeof(itemlink), "item:%x:%x:%x:%x:%x", pPlayerItem->vnum, pPlayerItem->flags, pPlayerItem->alSockets[0], pPlayerItem->alSockets[1], pPlayerItem->alSockets[2]); #endif When I use this code, it gives the "syserr" error I specified. But "#else" is no problem. And uitooltip.py: def SetHyperlinkItem(self, tokens): minTokenCount = 4 + player.METIN_SOCKET_MAX_NUM maxTokenCount = minTokenCount + 2 * player.ATTRIBUTE_SLOT_MAX_NUM if tokens and len(tokens) >= minTokenCount and len(tokens) <= maxTokenCount: head, vnum, flag = tokens[:3] itemVnum = int(vnum, 16) metinSlot = [int(metin, 16) for metin in tokens[3:6]] if app.ENABLE_WEAPON_EVOLUTION_SYSTEM: evolution = int(tokens[6]) rests = tokens[6:] if rests: attrSlot = [] rests.reverse() while rests: key = int(rests.pop(), 16) if rests: val = int(rests.pop()) attrSlot.append((key, val)) attrSlot += [(0, 0)] * (player.ATTRIBUTE_SLOT_MAX_NUM - len(attrSlot)) else: attrSlot = [(0, 0)] * player.ATTRIBUTE_SLOT_MAX_NUM self.ClearToolTip() if app.ENABLE_WEAPON_EVOLUTION_SYSTEM: self.AddItemData(itemVnum, metinSlot, attrSlot, evolution, 1 ) else: self.AddItemData(itemVnum, metinSlot, attrSlot) ItemToolTip.OnUpdate(self) I will be grateful if you could help me.
  5. Thank you very much guys.. I have one more question. Sorry for that. The "Item" option doesn't work either. What could be the reason for this? Whether it is "Enabled" or "Disabled" it is always "you have won xx". text appears. I do not have this line: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¾ÆÀÌÅÛ È¹µæ: %s"), item2->GetName()); There is this in PickupItem func: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¾ÆÀÌÅÛ È¹µæ: %s"), evolutionMergeText); Could this be too? Sorry for bad english. I Using google translate.
  6. Hello there. I cannot summon monsters with /m on my newly created map. There is no syserr record either. What could be the problem?
  7. Hello, I designed a new map. But I can't summon monsters with /m code. No syserr... Any ideas?
  8. Thank you very much I'm just wondering one thing. What exactly is the "experience" feature? I want to test it but I don't understand what it is.
  9. Yes, I've had this problem too. The cause of the problem is that we have changed the number of horse skills. Use the original values for horse skills and do not apply what is described in the Sage Master file. Examp (Sage Master): HORSE_SKILL_WILDATTACK = chr.MOTION_SKILL+113 HORSE_SKILL_CHARGE = chr.MOTION_SKILL+114 HORSE_SKILL_SPLASH = chr.MOTION_SKILL+115 Don't use this! Replace the numbers 113, 114 and 115 with the original values.(playersettingmodule.py) Do the same for the skilldesc.txt file.
  10. I tried it but it didn't work. I couldn't find the location setting of the CheckBox. @nazox I solved, thank you uichat.py; if key >= OPTION_CHECKBOX_EXP_INFO: yPos = 64 + (31 * 2) I changed with; if key >= OPTION_CHECKBOX_EXP_INFO: yPos = 64 + (31 * 2.6)
  11. How can I position the place I marked? (Dice's no problem. I removed.)
  12. Are you sure the codes are compatible with granny.lib? For example, if the codes are granny 2.9, the .lib file should have 2.9. Otherwise, the compiler cannot read the library and gives errors like this. Also, make sure the extern and lib linkers are correct in the config settings for debug mode.
  13. item_proto.txt -> Open -> CTRL+A -> CTRL+C Excell open -> select left up first column -> CTRL+V
  14. You probably made a wrong addition somewhere. I do not know exactly. Boot: shop table size error also means: This error will occur if more than 40 items have been added to a 40-slot market. If you did something like this, fix it back.
  15. I Installed PSM and compiled everything. But it gives this error when logging in. cpsm = PlayerSettingsModule.cpp file. But ı added binary and compile..
  16. Hi, ı use vs2019 and c++14(standart) But I need update to c++17. How to make? Where do I need to edit? [Hidden Content] Sorry, I don't understand the process here.
  17. Thank you so much. It works flawlessly Also yes functions like pc.get_gold could() be used but I had to do that with my query and now it's done.
  18. Thanks! Well, I want to ask one more thing. How can I use the result from the local=gold query in an if? For example; if(gold) < 5 then...
  19. local affected_rows, goldd = mysql_direct_query("SELECT gold FROM player.player WHERE account_id = '2';") say_reward(tostring(goldd)) Not work. Quest screen error: table: 00xc66e bla bla bla
  20. Thank you it worked. SELECT gold FROM player.player WHERE account_id = 2 But it always shows the result as 1.
  21. Hello friends. I'm writing a quest but I couldn't run mysql commands at all. local goldd = mysql_query("SELECT gold FROM player.player") say_reward("Başarılı." , goldd) Commands like SELECT - UPDATE do not work. and it just gives this error: attempt to call global `mysql_query' (a nil value) I tried mysql_query I tried mysql_query10 I tried mysql_direct_query but the result is the same.
  22. I had the same problem but found the solution man! The subtype in item_proto is 255 (wtf!) ---> locale/xx/item_proto I changed it to 3 and it works fine now. You can check it if you want.
×
×
  • 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.