Jump to content

DangThao

Community
  • Content Count

    307
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by DangThao

  1. Some website required additional database for the website item mall while some have addons for it.
  2. those 3 main map u cant put them all together, the map are way too big. there is a gs that i remembered allows u to do it but i do not have it in my keep. Yes that's how u open closed map.
  3. hover over the white heart on the post; bottom right corner of a post to react to a post =D
  4. Haha, people are active but they just likely to ignored questions of others (new developer). Have fun!
  5. to addmap, or add new map, u need mapinfo line, scriptdefine line, addbirth line and the map folder then add map = mapname to any of the gameserver.cfg u are running. to open map that are closed, add map = mapname (eastgoaf, garner2, leiting2) to ur gameserver.cfg or any gs.cfg u r running; map = garner2 map = eastgoaf map = leiting2 to cancel running map, u can remove it or do //map = mapname in the assigned gs.cfg
  6. Give your database base permission inside your database folder. Root > Database > right click property those .mdf and .ldf file; AccountServer_Data.mdf, AccountServer_Data.ldf and so on...
  7. Most developer gets this error. Make sure you give permission to your database via property options when you right clicked it. After it, attach your database again and it should works finely.
  8. Please be specific here so we know what you want to be done too 0.<
  9. Hey Guys, Someone can give scripts for show monster drop items and the percentage via helpinfo? There is a script for NPC Drop Manager but i want to include monster drops and percentage into the skill Eye of Wisdom. Thanks.
  10. Try to check your lua_err. it should shows in there.
  11. I think you trying to say how to match your client to your server? Mainly just compile your server file .txt file and copy the .bin files and replace with your client>scripts>table and paste in there and replace all. If you missing a texture or model, you can find the missing model number of the equipment/gear from your iteminfo and find the missing models/gear from other client and paste into your client in the corresponding folder and restart your client and it should works.
  12. All of those stuff are located inside forge.lua. Find the function you are using and then find the money cost for it. Like this: function begin_forge_item(...) -- Notice("Start to forge") local Check_CanForge = 0 Check_CanForge = can_forge_item_main ( arg ) if Check_CanForge == 0 then return 0 end local role = 0 local ItemBag = {} --µÀ¾ß±³°üλÖà local ItemCount = {} --µÀ¾ßÊýÁ¿ local ItemBagCount = {} --µÀ¾ß¶ÔÏóÊýÁ¿ local Get_Count = 4 local ItemReadCount = 0 local ItemReadNow = 1 local ItemReadNext = 0 local ItemBag_Num = 0 local ItemCount_Num = 0 local ItemBagCount_Num = 0 role , ItemBag , ItemCount , ItemBagCount , ItemBag_Num , ItemCount_Num , ItemBagCount_Num = Read_Table ( arg ) local ItemBag_Jinglian = ItemBag [0] local Item_Jinglian = GetChaItem ( role , 2 , ItemBag_Jinglian ) local Item_Stone1 = GetChaItem ( role , 2 , ItemBag [1] ) local Item_Stone2 = GetChaItem ( role , 2 , ItemBag [2] ) local Check_Jinglian_Item = 0 local Money_Need = getforge_money_main ( arg ) local Money_Have = GetChaAttr ( role , ATTR_GD ) -- Notice ("Currently there are"..Money_Have.."So much gold") -- Notice ("Must deduct"..Money_Need.."So much gold") Money_Have = Money_Have - Money_Need SetCharaAttr ( Money_Have , role , ATTR_GD ) ALLExAttrSet( role ) See where Local Money_Need = getforge_money_main ( arg ), it refers to the function where the cost will be calculate it. Like: function getforge_money_main ( Table ) local role = 0 local ItemBag = {} --µÀ¾ß±³°üλÖà local ItemCount = {} --µÀ¾ßÊýÁ¿ local ItemBagCount = {} --µÀ¾ß¶ÔÏóÊýÁ¿ local Get_Count = 4 local ItemReadCount = 0 local ItemReadNow = 1 local ItemReadNext = 0 local ItemBag_Num = 0 local ItemCount_Num = 0 local ItemBagCount_Num = 0 role , ItemBag , ItemCount , ItemBagCount , ItemBag_Num , ItemCount_Num , ItemBagCount_Num = Read_Table ( Table ) local ItemBag_Jinglian = ItemBag [0] local Item_Jinglian = GetChaItem ( role , 2 , ItemBag_Jinglian ) local Jinglian_Lv = 0 Jinglian_Lv = GetItem_JinglianLv ( Item_Jinglian ) Jinglian_Lv = Jinglian_Lv + 1 local Money_Need = Jinglian_Lv * 100000 -- Notice("Calculation completed") return Money_Need end See whereas local Money_Need = Jinglian_Lv * 100000, it means it will be the plus (+1 = 1 * 100000, +2 = 2 * 100000 and so on). Jinglian_lv = the current forge level your gear will be after forge. If you hate finding stuff like these, after you finds all the cost, make a variable for it and call through that. So you don;t have to find again and again every time you want to change the price.
  13. Go to root>resource>script>calculate>exp_and_level.lua 1) Find: exp = exp + exp_up 2) Add this below local ItemID = 3457 -- ID of Stone No EXP if (CheckBagItem(t[i], ItemID) > 0) then exp = 0 --SystemNotice( TurnToCha(t[i]), "No experience point is gained.") return end Make sure to change the ItemID to your no exp stone. RN it disabled the notice to the player. You can enabled by remove the --.
  14. Same problem. https://ibb.co/Wn2y06x
  15. Tested with sql 2014 express, clean client and server file = same problem. need relog or ticket out to refresh the stats of gemmed equipment on the character attributes. HELP???
  16. Weird, i even try with random file and still same problems. could it be my GS? or DB messed up?
  17. Not exactly sure, never encounter this problem before. even with clean resource folder, still have same problem. i suspect it could be game.exe or gameserver.exe but idk... need retest everything
  18. Anyone knows how to fix stats bugged after APP Fuse? After fused, the gemmed equipment bonus wont be add to it, it needs to relog to see the changes.
  19. It should work for any set u want to keep effect. make sure u do it correctly.
  20. This will show you how to prevent player from feeding pet on any slot, why? because without this they can be very overpower with the stats they fed the pet. So pet must be in second slot to feed. 1_Find your iteminfo line for the pet fruit you want to prevent from happening 0222 Snow Dragon Fruit n1346 10130005 0 0 0 0 0 00 58 0 0 0 0 0 1 1 1 1 99 0 10000 -1 0 -1 0 0 -1 -1 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 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 0,0 0 0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_LS_longguo 0 0 0 0 0 0 Snow Dragon Fruit can increases the Strength of pet 2_ItemUse_LS_longguo is the function you must find inside your itemeffect.lua; ctrl + f and search for ItemUse_LS_longguo 3_Add this to your code elseif Item_Traget ~= GetChaItem(role, 2, 1) then SystemNotice(role, "Can only feed fairies on second slot.") UseItemFailed(role) return 4_Result: function ItemUse_LS_longguo ( role , Item , Item_Traget ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) -- SystemNotice( role , Cha_Boat ) if Cha_Boat ~= nil then SystemNotice( role , "Cannot use while sailing" ) UseItemFailed ( role ) return end local Item_type = GetItemType ( Item ) local Item_Traget_Type = GetItemType ( Item_Traget ) local Item_Num = GetItemID ( Item ) local Check_Exp = 0 local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY) --SystemNotice(role ,Elf_MaxEXP ) if Item_type == 58 and Item_Traget_Type == 59 then Check_Exp = CheckElf_EXP ( role , Item_Traget ) --¾«ÁéexpÊÇ·ñÂú×ãÉý¼¶Ìõ¼þ if Check_Exp == 0 then SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" ) UseItemFailed ( role ) elseif Item_Traget ~= GetChaItem(role, 2, 1) then SystemNotice(role, "Fairy must be on second slot to feed. Failed!") UseItemFailed(role) return else Lvup_Str ( role , Item_Num , Item_Traget ) --¸ù¾Ý¾ßÌåµÀ¾ßÑ¡Ôñ²»Í¬ÊôÐԵijɳ¤º¯Êý ( ÀýÖÐΪstr ) end end end
  21. Iteminfo Line: 7934 Pet Exp Stone n1502 bluestone01 0 0 0 0 0 0 31 0 0 0 0 0 1 1 1 1 19999 1 10 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 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 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 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 addexp_elf 0 0 0 0,0 0,0 0,0 Double Click 2 Time To Make Your Pet Exp Full Please Put Your Pet in number 2 Slot Of Inventory 0 ItemEffect.lua Line function addexp_elf (role,Item) local Equipment = GetChaItem(role, 2, 1) local EquipmentName = GetItemName(GetItemID(Equipment)) local EquipmentType = GetItemType2(GetItemID(Equipment)) local Item_ID = GetItemID(Item) if(Equipment == nil)then SystemNotice(role,"Nothing inserted on 2st Inventory Slot.") --check item there or no UseItemFailed ( role ) return end if Item_ID == 7934 then --Exp Pet if(EquipmentType == 59 )then local ItemAttr = GetItemAttr(Equipment, ITEMATTR_ENERGY) local Bonus = 6480 local FinalAttr = ItemAttr + Bonus local Limit = 6480 if (ItemAttr >= Limit) then SystemNotice(role,"The Pet Is Max Exp!") UseItemFailed ( role ) return end if (FinalAttr >= Limit) then SetItemAttr(Equipment, ITEMATTR_ENERGY, Limit) else SetItemAttr(Equipment, ITEMATTR_ENERGY, FinalAttr) end SystemNotice(role,"Successfully added Full Exp To Your Pet!") RefreshCha(role) else SystemNotice(role,"Only Pets Can Be Used With Exp Elf Stone , Make Sure Your Pet In 2st Slot Of Inventory!") UseItemFailed ( role ) return end end end Credit: G-PKo FIlesss from archive. Hopefully this helps some developer out there. Have fun.
×
×
  • Create New...