alphavladim 0 Posted July 13, 2015 Share Posted July 13, 2015 (edited) Does anyone have a 50k / 40k or newer source to compile ? Also, is there any possibility to make shops ( in game ones, when you transform in that table ) only in custom locations ? For example, i want to disable the ability to create shops in map1 and let the players create them only in a specific map and area of it, made exactly with this purpose. Another question: How can i implement grass for example in the client ? What should i add in property.epk ? I already made a map with 3D grass with World Editor Remix. Thanks! Edited July 14, 2015 by alphavladim Link to comment Share on other sites More sharing options...
Benhero 23 Posted July 13, 2015 Share Posted July 13, 2015 Shops in Special Maps: Change item to Sell (in german "Bündel") to Type 18 Make a quest for it like quest blablabla begin state start begin when 123456.use begin local allowedMaps = {1, 21, 41} for i = 1, table.getn(allowedMaps) do if allowedMaps[i] == pc.get_map_index() end cmdchat("open_privateshop") -- <- Think Command is diffrent return end end end end end 2 Link to comment Share on other sites More sharing options...
alphavladim 0 Posted July 13, 2015 Author Share Posted July 13, 2015 (edited) Thank you for your answer! Is there any way to verify players coords ? For instance pc.get_player_location.y or something similar ? Edit: Also, what IDE are you using for scripts making ? Is VS 2013 adequate ? Thanks again. Edited July 13, 2015 by alphavladim Link to comment Share on other sites More sharing options...
Shang 371 Posted July 13, 2015 Share Posted July 13, 2015 (edited) Shops in Special Maps: Change item to Sell (in german "Bündel") to Type 18 Make a quest for it like quest blablabla begin state start begin when 123456.use begin local allowedMaps = {1, 21, 41} for i = 1, table.getn(allowedMaps) do if allowedMaps[i] == pc.get_map_index() end cmdchat("open_privateshop") -- <- Think Command is diffrent return end end end end end if allowedMaps[i] == pc.get_map_index() end if allowedMaps[i] != pc.get_map_index() then return else cmdchat("open_privateshop") -- <- Think Command is diffrent end For security. Edited July 13, 2015 by Shang 2 Link to comment Share on other sites More sharing options...
alphavladim 0 Posted July 14, 2015 Author Share Posted July 14, 2015 (edited) Do you suggest any IDE for editing those scripts ? It would be handy to have some features like syntax prediction. Is there any syntax to check / get player position ? (map coords). Thanks! Edited July 14, 2015 by alphavladim Link to comment Share on other sites More sharing options...
Benhero 23 Posted July 14, 2015 Share Posted July 14, 2015 (edited) if allowedMaps[i] != pc.get_map_index() then return end else cmdchat("open_privateshop") -- <- Think Command is diffrent end For security. If you use this. It only chech the first index in array and then the return will be call. What means the quest w'll be canceld.. so it not work. also you missed the highlited end... As "IDE" i use notepad++ with lua highlight. and vor local x and y you can use pc.get_local_x() pc.get_local_y() Edited July 14, 2015 by Benhero 1 Link to comment Share on other sites More sharing options...
alphavladim 0 Posted July 14, 2015 Author Share Posted July 14, 2015 Any scripting referrences for this game ? I mean for example a list with all syntaxes, so i won't ask for syntaxes again and again on the forums. Thank you for your answer! I really appreciate your help! Link to comment Share on other sites More sharing options...
Benhero 23 Posted July 14, 2015 Share Posted July 14, 2015 quest = lua So you can use Lua Highlight! In notepad++: Language -> L -> LUA If you want to know every Function you can use the quest_function in your server 1 Link to comment Share on other sites More sharing options...
alphavladim 0 Posted July 14, 2015 Author Share Posted July 14, 2015 Thanks again!! <3 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