Jump to content

Inuarashi

Advanced members
  • Content Count

    39
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Inuarashi

  1. @wizel1you can create a script that checks if the character has the state already or not, for the item that you use. such as heaven berry have state_xxxxx, then do a check if state == 1, and if it does, prompt a message and return, end, before the consumption of the item.
  2. I think that is done through the patching of the client.
  3. I believe there is a file called stringset.bin that also contains some of the exe names such as the name of the game.
  4. are you planning to translate the whole game into your language?
  5. normally stuff relates to the player is reset when logged out, so if you want it to stay for a long time without it being removed while logging out then probably a database or a substitute for a database will be suitable. (like a text file)
  6. does the client crash while changing regions?
  7. are to translating the game into a different language?
  8. why would you fuse rings into apparels? o_o
  9. @FapFap what are you trying to do with this script? o.o anyways, try this, might work. function ResumeFuel(cha) local Cha_Boat = ChaIsBoat(cha) if Cha_Boat ~= 1 then return end local boat = TurnToShip(cha) local fuel,mxfuel,fuelrec = GetChaAttr(boat, ATTR_SP),GetChaAttr(boat, ATTR_MXSP),GetChaAttr(boat, ATTR_SREC) local dura,mxdura,durarec = GetChaAttr(boat, ATTR_HP),GetChaAttr(boat, ATTR_MXHP),GetChaAttr(boat, ATTR_HREC) if(fuel <= 0)then if(dura > 0)then SystemNotice(boat, 'No more fuel! ['..GetChaDefaultName(boat)..'] is slowly getting damaged.') durarec = durarec - 0.025 * mxdura dura = math.min(mxdura, dura + durarec) SetCharaAttr(dura, boat, ATTR_HP) end if(dura <= 0)then return end else fuel = math.max(0, fuel - fuelrec) SetCharaAttr(fuel, boat, ATTR_SP) end end end ResumeHook = Resume Resume = function(role) ResumeHook(role) ResumeFuel(role) end
  10. that means that a function is calling this function each second (or a lot of times a second), try to search ur files for TurnToShip and see what function is triggering this function (example would be cha_timer) the log appears because x_role in this function is nil based on some function that is running it. it probably happens because you are using TurnToShip (role) function on something that doesnt require the character to be in a ship (so GetCtrlBoat is nil) and returning this message.
  11. its probably in your scripts, could you post the function for us to see?
  12. Could as well change (role) to (DEFER) to keep the function in the skill, but defined it correctly to the right variable. AllExAttrSet(role) to AllExAttrSet(DEFER) :)
  13. the problem error is that, sometimes it happens that the value hp(role) is nil , and there is nothing to handle that, so the error comes up a way to fix it is to add something to handle that situation. such as the code above. if the value is nil, or the value is less than 0 , do someting, end.
  14. maybe you could check on how resources work, as trees / iron ore seems to drop items everytime its cut, not when it dies like monsters.
  15. game server or game.exe might not be modified to accept itemid's over 8000
  16. could you paste your whole script?
  17. what is the error? the script is fine o.o
  18. characters inventories are locked during stall, so it would not work.
  19. Or just simply adding an item (Mockup: Hundred Dollar Note - Gives 100M) function ItemUse_HundredDollar (role,item) local Gold = GetChaAttr (role,ATTR_GD) -- Check if Gold is over the limit if Gold >= 1900000000 then -- If gold is over 1,900,000,000 (1.9B) SystemNotice (role,"Your gold is too much!") return -- Returns the code so it doesnt go any further end -- Add Gold to Player AddMoney (role,0,100000000) -- Add 100,000,000 (100M) gold to the player end Add to ItemInfo.txt XXXX Hundred Million Dollar Note ICON 10130005 0 0 0 0 0 00 41 0 0 0 0 0 1 1 1 1 99 0 100000000 -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_HundredDollar 0 0 0 0 0 0 Use to obtain 100M Then you can add it to a NPC Stall (Item is priced at 100M for players to buy) or to some NPC Exchanger that talk dialogue to exchange 100M to this item =)
  20. is it not possible to just limit by class in iteminfo.txt?
×
×
  • Create New...