Jump to content

Angelix

Community
  • Content Count

    518
  • Joined

  • Days Won

    68

Posts posted by Angelix


  1. 11 minutes ago, Shako said:

    Thanks a lot! Is there a way to make the map's tick start when the portal opens, where anything scripted will spawn regardless of player count?

    Currently no, or not any that I have found yet. If someone knows, please show us the way.

    11 minutes ago, Shako said:

    In case I want to make something spawn every 3 minutes instead of 5 minutes, how will I do that? :P

    Try this. Since the function works with seconds, not minutes, then a minute translates into 60 seconds, then 180 would be 3 minutes.

    RandomTickVariable = 0
    function map_copy_run_X(MapCopy)
    	RandomTickVariable = RandomTickVariable + 1
    	if (RandomTickVariable - math.floor(RandomTickVariable/180)*180) == 0 then
    		...
    	end
    end
    • Like 1

  2. Change this:

    	MisResultCondition( HasFlag, 1401, 10)
    	MisResultCondition( HasFlag, 1401, 20)
    	MisResultCondition( HasFlag, 1401, 30)
    	MisResultCondition( HasFlag, 1401, 40)
    	MisResultCondition( HasFlag, 1401, 50)

    To this:

    	MisResultCondition( HasFlag, 1401, 14)
    	MisResultCondition( HasFlag, 1401, 24)
    	MisResultCondition( HasFlag, 1401, 34)
    	MisResultCondition( HasFlag, 1401, 44)
    	MisResultCondition( HasFlag, 1401, 50)

    Give me a heads up if it doesn't work.

    • Like 2

  3. Add this to forge.lua:

    Then open NpcSdk.lua, look for:

    Spoiler

            elseif item.func == GoTo then
                return GoTo( character, item.p1, item.p2, item.p3 )

    Right under it, add this:

    Spoiler

            -----------------------------------------------
            -- // Custom Function: PlayerRebirth // --
            elseif item.func == PlayerRebirth then
                return PlayerRebirth(character, item.p1, item.p2)

    Now, it should look like this:

    Spoiler

            elseif item.func == GoTo then
                return GoTo( character, item.p1, item.p2, item.p3 )
            -----------------------------------------------
            -- // Custom Function: PlayerRebirth // --
            elseif item.func == PlayerRebirth then
                return PlayerRebirth(character, item.p1, item.p2)

    Now, just add this to any NPC you want.

    Spoiler

        Talk(4, "Goddess: Rebirth is a special process where you can reincarnate once more, this will reset your class, stat and skills so you can make more choices.")
        Text(4, "Phoenix Rebirth", JumpPage, 5)
        Text(4, "Athene Rebirth", JumpPage, 6)
        
        Talk(5, "Goddess: This Rebirth is called Phoenix Rebirth, also called the First Rebirth.")
        Text(5, "Rebirth: Champion", PlayerRebirth, 1, 8)
        Text(5, "Rebirth: Crusader", PlayerRebirth, 1, 9)
        Text(5, "Rebirth: Sharpshooter", PlayerRebirth, 1, 12)
        Text(5, "Rebirth: Cleric", PlayerRebirth, 1, 13)
        Text(5, "Rebirth: Seal Master", PlayerRebirth, 1, 14)
        Text(5, "Rebirth: Voyager", PlayerRebirth, 1, 16)
        
        Talk(6, "Goddess: This Rebirth is called Phoenix Rebirth, also called the First Rebirth.")
        Text(6, "Rebirth: Champion", PlayerRebirth, 2, 8)
        Text(6, "Rebirth: Crusader", PlayerRebirth, 2, 9)
        Text(6, "Rebirth: Sharpshooter", PlayerRebirth, 2, 12)
        Text(6, "Rebirth: Cleric", PlayerRebirth, 2, 13)
        Text(6, "Rebirth: Seal Master", PlayerRebirth, 2, 14)
        Text(6, "Rebirth: Voyager", PlayerRebirth, 2, 16)

    Of course, just modify the corresponding pages according to your needs.

     

    This can essentially replace all those "ChaName_Born" (think they are called like that) functions. With that, you should have no problems with the skills, stats or something else. Although, the script does need the player to have the corresponding items such as the stones, and for Second Rebirth, you need between 9,500 and 9,999 SEXP to be able to proceed and the wings from Frist Rebirth. If something is missing, please let me know.

     

     

    Edit: Had to publish through PasteBin since I think the script was too long for the post and I can't upload attachments, otherwise I would have loaded the LUA file directly here.

    • Like 1

  4. 1 hour ago, Bunker said:

    Still does not work. may all script are well placed and the problem could be with Rebirth Mystic Power skill? x.x

    I have a custom script which does all the basic needs for first and second level of rebirth, but you'll need to modify 3 different files, do you want it? 


  5. 1 minute ago, Totoka said:

    any VS 2005 c++ will be file for some projects (.vcproj), not for all of them, coz there are also projects which requires the vc90 toolset from VC2008 (@V3ct0r had mentioned it before.), there are also .vcxproj to compile with VS2010+ build systems ( and some of them has no .vcproj backups D= )

     

    about the download, don't be so lazy.

    eventually you can use google's stuff for such purposes, they have a great search engine.

     

    look.

    Sorry about that, not lazy, just that I haven't been able to compile them. I tried even Visual Basic 6, up to VS 2015, hahah. I always get an error or two, since I lack knowledge to use the compilers and how to fix errors, that's why I was looking for a guide. My bad if it looked wrong just asking and asking. I already installed VS C++ 2005 Express, will try to do as you said, I'd upload proof I have it installed, yet attachments don't work, don't know why.


  6. 5 minutes ago, Totoka said:

    you can compile it with vs 2005 located at [project]/Proj/Backup

    replace it for the current one at [project/Proj]

     

    take in count that you must compile the 'common' libraries first, Common/[*]/Proj

     

    @V3ct0r do you know if there are clean/untouched source files ?

    Thanks for the reply. 
    Do you know where I can download VS2005? Can it be done with the VS 2005 Express? A guide would be really helpful.


  7. 6 hours ago, V3ct0r said:

    Hello @Angelix!

     

    You can compile source code in Visual Studio/C++ 2008. Also you can use VS 2015 but with some fixes

    Thanks, i'll give that a try. How about the IGS feature?

     

    I just wasn't able to compile/generate an .exe for the applications, can you make a guide with links according to the necessary files? For v1.X or v2.x please.


  8. 6 hours ago, Lua said:

    @Angelix try by replacing link names to pkodev.net instead of daylight-online.ru

     

    So, there are one public v2.x igs... but meh~~ they are not reliable. Check this:

    ^^,

    Will check it out once I get home, by replacing links. Should I try with the ones you posted on that thread?


  9. I'm Angelix from ServerDev and I have been absent from development way too long, noticed ServerDev was dead/closed and I found this forum by browsing MainDev, anyways, onto the questions hoping someone can help me out here.

     

    1. I saw the source code released for v2.x+, is there anyway to compile it, I mean, what program can I use and such?
    2. Is there an in-game mall already for v2.x?
    3. Are there any base files for v2.x?

    Thanks! :)

×
×
  • Create New...