Jump to content

Angelix

Community
  • Content Count

    518
  • Joined

  • Days Won

    68

Posts posted by Angelix


  1. If you played official Tales of Pirates, you would sometimes see around black dragon equipment such as armor, globes or boots, they're the same item ID, but can have different stats depending on the quality. They were called "curse points", from 0 to 8 curse points, 0 being the best and 8 being worst. a 0 CP BD equipment (armor) had +10 stats and something like +30 PR, 8 CP had like +8 stats and +27 PR I think. Those were differentiated by it's quality at server level, 0CP was obtained by something like "GiveItem(Player, 0, <ItemID>, 1, 20)" while 8CP was obtained by ""GiveItem(Player, 0, <ItemID>, 1, 13)" or something like that.

    If that is still not understandable, try going in-game and using the "make" command with something like this "&make <ItemID>, <ItemQuantity>, <ItemQuality>". For example try grabbing a sword and using 1 as quantity and 22 as quality, the sword should appear with predetermined prefix and also with random +10 stats. If you leave out the quality parameter, it will give you a sword with a random quality and random stats.

    • Like 1

  2. So I'm trying to create a custom log folder and sub-folders depending on other things.

    First thing, how can I check if a directory (folder) exist or not? I know there's a function to check if a file exists, but what about a folder?

    function FileExist(Path)
    	local f = io.open(Path, "r")
    	if f ~= nil then
    		io.close(f)
    		return true
    	else
    		return false
    	end
    end

    Also, how can I create text files that don't exist? I know there's the "table.save" function from serialize, but that is to save tables, I just want to make a text file like a log, individual lines created each time.

     

    I tried looking on lua manuals, but no luck so far.


  3. On 2/4/2017 at 7:14 AM, blazi10 said:

    Got this error with Daily Quest

    http://screenshot.sh/m1QsTif8T73Kv

     

    can you help me?'

    its my function NpcState:

    
    function NpcState( character, npcid, id )
       PRINT( "NpcState:character, npcid, NpcMissionList", character, npcid, id )
    	if NpcInfoList[id] == nil or NpcInfoList[id].missionlist == nil then
    		PRINT( "unable to obtain NPC script notice!ID = ",  id )
    		LG( "npc_error", "unable to obtain NPC script notice!ID = ",  id )
    		return LUA_FALSE
    	end
    
       return MissionState( character, npcid, NpcInfoList[id].missionlist )
    end

     

     

    Sorry for taking a long time, but I got around onto looking for a fix for daily and weekly quests and it should now be fixed.

     

    Guide has been updated to provide a fix for an error that was preventing from adding daily or weekly quests.

     

    The weekly quest fix is now using a workaround for calculating the current week number. The function utilized is from http://lua-users.org/wiki/WeekNumberInYear, although I made some small modifications to it so it can be used properly without providing a lot of user input. Thanks to @Blanquitoh for helping in this small issue by providing the link!

    • Like 2

  4. The idea behind "offline stall" is leaving your character online without killing it's memory address on GameServer. Normally a player has a memory address when playing, if you switch to another character or close client, that memory is killed, kinda like applications on your computer. If you close it (exit client), the process stops, but if you have that feature installed then the client just closed without killing the memory. Again, kinda like applications, some when you click exit, they stay minimized until you completely kill the process from task manager. Off line stalls work the same, if server detects you're in a stall state, then it lets the client close without killing address, but if it doesn't detect a stall, then it lets the memory be killed when closing the client.

     

    Hope that helps. 

    • Like 4

  5. 3 minutes ago, V3ct0r said:

    Who is it?

    He's referring to SnowCrash, the one who create the first pkoSite and contributed on a few other stuff. He just disappeared one time without saying a thing and never came back. Same as Heandel and Matt. I do think he was French though from some conversations on early ServerDev.

    • Like 1

  6. 11 minutes ago, Ximboliex said:

    If you want change the texture of mob go to "root>texture>character" and find the number of model. example "782" will find some like this "0782000.tga or bmp" and open with Photoshop

    He doesn't want to edit the texture, he wants to change it completely into another monster, in this case being "Wandering Soul". I already provided a solution, but he hasn't answered.

×
×
  • Create New...