Premium Sanchez 2467 Posted March 28, 2014 Premium Share Posted March 28, 2014 Your locale_game.txt does not contains the SHOP_BUY_INFO Link to comment Share on other sites More sharing options...
brianman 1 Posted March 28, 2014 Share Posted March 28, 2014 Sanchez nekem írhatsz magyarul is Na szóval, megnéztem, benne van. Ezt az új rendszert próbálgatom de ezt írogatja, a jelentése pedig: SHOP_BUY_INFO Válaszd ki a tárgyat, amit meg akarsz vásárolni a bolt ablakból. UI: vásárlásnál írja Link to comment Share on other sites More sharing options...
Phantom 3 Posted March 31, 2014 Share Posted March 31, 2014 help pls Sanchez help pls Link to comment Share on other sites More sharing options...
Premium Sanchez 2467 Posted April 2, 2014 Premium Share Posted April 2, 2014 I don't have any idea, because I'm not tested the codes, but I think the problem will be with the quest calling. Make a debug messages at item purchasing and you will see where is the problem. Link to comment Share on other sites More sharing options...
DasSchwarzeT 111 Posted April 5, 2014 Share Posted April 5, 2014 networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiToolTip.py, line 547) I'm not sure if I undestand what you want to change in uitooltip. Can u explain? Link to comment Share on other sites More sharing options...
Life 13 Posted April 5, 2014 Share Posted April 5, 2014 Can someone help me with the quest please, instead of it finding the TR amount from the questflag, i want it to find it from mysql, and when buying something from the TR shop, it reduces TR from database. Link to comment Share on other sites More sharing options...
DasSchwarzeT 111 Posted April 15, 2014 Share Posted April 15, 2014 Ayn1 having a version without bugs? Link to comment Share on other sites More sharing options...
Avertus 1 Posted April 19, 2014 Share Posted April 19, 2014 http://scr.hu/2wn9/xruuo I have PP, but I can not buy anything. After relog PP disappear. You got it? Link to comment Share on other sites More sharing options...
Premium Sanchez 2467 Posted April 19, 2014 Premium Share Posted April 19, 2014 I already gave some instructions in this topic about this system. Use database to store the coins of the player and always resend it at login and at item purchasing. Please look back with few pages and check out my comments. Link to comment Share on other sites More sharing options...
Xanik 2 Posted April 20, 2014 Share Posted April 20, 2014 Whether it would be difficult to do on the server side (in the game)? Link to comment Share on other sites More sharing options...
UNK3N0W7 373 Posted April 20, 2014 Share Posted April 20, 2014 Print Screen ? Link to comment Share on other sites More sharing options...
Denis 1474 Posted April 20, 2014 Share Posted April 20, 2014 This quest is with mysql: quest achievement begin state start begin function getcoins() local a = mysql_query("SELECT * FROM player.player WHERE id = "..pc.get_player_id().."") return a.coins[1] end function addcoins(coins_ammount) local a = mysql_query("UPDATE player.player SET coins = coins+"..coins_ammount.." WHERE id = "..pc.get_player_id().."") end function removecoins(coins_ammount) local a = mysql_query("UPDATE player.player SET coins = coins-"..coins_ammount.." WHERE id = "..pc.get_player_id().."") end function buy(id,count) pc.give_item2(id,count) end when 20095.chat."Sklep Osiagniec " begin cmdchat("SetIsNpc") npc.open_shop(16) setskin(NOWINDOW) cmdchat("SetPrice 200|200|200|200|200|0|0|100|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0") end when login begin cmdchat("SetQuestIndex "..q.getcurrentquestindex()) cmdchat("setPP "..tonumber(achievement.getcoins())) end when button or info begin local items = { [0]={71124, 1, 200}, [1]={71125, 1, 200}, [2]={71126, 1, 200}, [3]={71127, 1, 200}, [4]={71128, 1, 200}, } local slot = tonumber(achievement.GetInput("GetInput")) if achievement.getcoins() >= items[slot][3] then achievement.removecoins(tonumber(items[slot][3])) cmdchat("setPP "..tonumber(achievement.getcoins())) achievement.buy(items[slot][1], items[slot][2]) else cmdchat("NieMamPP") end end function GetInput(value) cmdchat("GetInputStart") local ret = input(cmdchat(value)) cmdchat("GetInputStop") return ret end end end Use console to add this to player.player ALTER TABLE player.player ADD coins int(11) NOT NULL; *Not tested* 2 Link to comment Share on other sites More sharing options...
yagokurt 84 Posted April 23, 2014 Share Posted April 23, 2014 Hi i was trying add this system and get this syserr clientside. Crash after login screen when will show my characther to login. 0423 09:04:08134 :: networkModule.py(line:194) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:23) ? system.py(line:130) __pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.IndentationError:expected an indented block (line 546) 0423 09:04:08134 :: ============================================================================================================ 0423 09:04:08134 :: Abort!!!! I tried check after which file this start happen and then i take this conclusion. inventorywindows.py: OK constinfo.py: OK uishop.py(uploaded by Sanchez): when i try shop haven't any tooltip. game.py: stop on loading screen to join ingame after character select. uitooltip.py: crash after login uiinventory.py: crash after login thats all i think. sry for the low knowledge to give more information. Link to comment Share on other sites More sharing options...
Premium Sanchez 2467 Posted April 23, 2014 Premium Share Posted April 23, 2014 Please upload the files what you modified and I look into it. 1 Link to comment Share on other sites More sharing options...
yagokurt 84 Posted April 23, 2014 Share Posted April 23, 2014 Please upload the files what you modified and I look into it. Thx for check the files Sanchez. https://mega.co.nz/#!uAwR2J6K!eQG6IT0wKzYXFVj9gQBoPVSJstkRm7MMTwmONPderWw 1 Link to comment Share on other sites More sharing options...
Premium Sanchez 2467 Posted April 23, 2014 Premium Share Posted April 23, 2014 You had syntax errors everywhere, but check it now: This is the hidden content, please Sign In or Sign Up 1 Link to comment Share on other sites More sharing options...
yagokurt 84 Posted April 24, 2014 Share Posted April 24, 2014 You had syntax errors everywhere, but check it now: This is the hidden content, please Sign In or Sign Up Thanks Sanchez. Now i will compare both files to see where was my errors. -----EDIT----- Crash after login Sanchez. and get this syserr. 0424 08:58:05465 :: networkModule.py(line:194) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:28) ? system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:14) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.IndentationError:unindent does not match any outer indentation level (line 475) 0424 08:58:05465 :: ============================================================================================================ 0424 08:58:05465 :: Abort!!!! Link to comment Share on other sites More sharing options...
Premium Sanchez 2467 Posted April 24, 2014 Premium Share Posted April 24, 2014 Try now: This is the hidden content, please Sign In or Sign Up 1 Link to comment Share on other sites More sharing options...
yagokurt 84 Posted April 24, 2014 Share Posted April 24, 2014 Same syserr. Only change the line error now to 503 0424 11:14:06732 :: networkModule.py(line:194) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:28) ? system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:14) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.IndentationError:unindent does not match any outer indentation level (line 503) 0424 11:14:06732 :: ============================================================================================================ 0424 11:14:06732 :: Abort!!!! Link to comment Share on other sites More sharing options...
thenemne0032 70 Posted April 29, 2014 Share Posted April 29, 2014 Sanchez, Employees give all the files, please? Link to comment Share on other sites More sharing options...
Amnezja 0 Posted May 1, 2014 Share Posted May 1, 2014 Has anyone quest to drop those on, how do I get them? Link to comment Share on other sites More sharing options...
Life 13 Posted May 6, 2014 Share Posted May 6, 2014 This quest is with mysql: quest achievement begin state start begin function getcoins() local a = mysql_query("SELECT * FROM player.player WHERE id = "..pc.get_player_id().."") return a.coins[1] end function addcoins(coins_ammount) local a = mysql_query("UPDATE player.player SET coins = coins+"..coins_ammount.." WHERE id = "..pc.get_player_id().."") end function removecoins(coins_ammount) local a = mysql_query("UPDATE player.player SET coins = coins-"..coins_ammount.." WHERE id = "..pc.get_player_id().."") end function buy(id,count) pc.give_item2(id,count) end when 20095.chat."Sklep Osiagniec " begin cmdchat("SetIsNpc") npc.open_shop(16) setskin(NOWINDOW) cmdchat("SetPrice 200|200|200|200|200|0|0|100|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0") end when login begin cmdchat("SetQuestIndex "..q.getcurrentquestindex()) cmdchat("setPP "..tonumber(achievement.getcoins())) end when button or info begin local items = { [0]={71124, 1, 200}, [1]={71125, 1, 200}, [2]={71126, 1, 200}, [3]={71127, 1, 200}, [4]={71128, 1, 200}, } local slot = tonumber(achievement.GetInput("GetInput")) if achievement.getcoins() >= items[slot][3] then achievement.removecoins(tonumber(items[slot][3])) cmdchat("setPP "..tonumber(achievement.getcoins())) achievement.buy(items[slot][1], items[slot][2]) else cmdchat("NieMamPP") end end function GetInput(value) cmdchat("GetInputStart") local ret = input(cmdchat(value)) cmdchat("GetInputStop") return ret end end end Use console to add this to player.player ALTER TABLE player.player ADD coins int(11) NOT NULL; *Not tested* The inventory shows 1234567, any solution? Link to comment Share on other sites More sharing options...
Denis 1474 Posted May 6, 2014 Share Posted May 6, 2014 What? Link to comment Share on other sites More sharing options...
Deucalion 249 Posted May 6, 2014 Share Posted May 6, 2014 The inventory shoes 1234567, any solution? I had the same problem, have you got any errors in sysser (i mean errors with wrong command in client or sth)?If yes you must do sth wrong in servercommandlist in game, but if no; the problem is in the quest, my looks little bit different e.g function getcoins() local a = mysql_query("SELECT coins from player.player WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1] a = tonumber(a) return a end cmdchat("setPP"..achievementy.getcoins()) Link to comment Share on other sites More sharing options...
Denis 1474 Posted May 6, 2014 Share Posted May 6, 2014 Show your syserr game/client Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now