Jump to content

gekigengar

Members
  • Posts

    174
  • Joined

  • Last visited

Posts posted by gekigengar

  1.  

    Put it on github so that people may help you

     

    Guys you  really need to go back to first page and read again the developer's opinions about that. His main goal is to learn and develop, if it goes open source then it will be released faster that's a given, but he won't learn all he wanted!

     

    Give him a break..

     

     

    Not when such progress is threatened to be lost.

    All I pray for everyday has been for Shinryo to still continue developing this.

     

    Its our only hope for a Custom RO client! :P

  2. -	script	day_night_npc	-1,{
    OnClock0100:
    OnClock2000:
    OnInit:
    	sleep 1; // if you want to use different script file, then slow down the script execution
    	if ( gettime(3) >= 1 && gettime(3) < 20 ) { // day warp
    		enablenpc "daywarp#1";
    		disablenpc "nightwarp#1";
    	}
    	else {
    		enablenpc "nightwarp#1";
    		disablenpc "daywarp#1";
    	}
    	end;
    }
    
    prontera,152,192,0	warp	daywarp#1	2,2,morocc,156,93
    prontera,152,192,0	warp	nightwarp#1	2,2,geffen,119,59
    if it is different file, then you have to make sure that your custom script is being read laterread npc\re\scripts_main.conf, or npc\scripts_custom.confmake sure the warp npc is being read 1st before the day_night_npcor ... just easily put a sleep command before enablenpc/disablenpc

    thank you, that solves everything!

  3. So how do I refer to a warp NPC?

     

    for example..



    yuno_fild04,251,21,0 warp ein001 1,1,ein_fild06,252,363
    ein_fild06,252,365,0 warp ein001a 1,1,yuno_fild04,251,23


    do I just create them, then "disablenpc ein001" after creating them?

     

    What if they are created on different script file? is that still okay?

  4. I am making a dungeon that has 2 entrance, one entrance only appear at morning, and the other at night. (The entrance is using regular field warps)

    (So I am guessing it will be using the OnClock function.)

    (Day starts after 01:00)

    (Night starts at 20:00)

    OnInit:
    	if (Time is > 20:00 or Time < 01:00) {
    		// Enable night field warp.
    	} else {
    		// Enable day field warp.
    	}
    	end;
    
    OnClock2000: //On 8 PM 
    	// Enable night field warps.
    	// Disable day field warp.
    	end;
    
    OnClock0100: //on 1 AM
    	// Disable night field warp
    	// Enable day field warp

    I get the main Idea, but how do I put these into script?

     

    Thanks Brian for editing! (I am not sure why my Mozilla browser failed to post the original post with the tags.)

  5. Using the global height edit mode and pasting all to a bigger sized map.

     

    I guess you should keep a backup, and beware that gat can't be copied this way. Also, you should try the smooth lightmaps before, since its more easy to test.

    Thanks its now fixed :P

     

    Idk why bigger map fixed it, but the maker should do something about it :/

  6. I have been creating maps, it worked fine in browEdit, but it has been showing black dots in-game.

     

    I thought that it was my lightmap errors, I exported the Lightmap and expected black dots to be fixed,

    But then when it was exported, the lightmap is silky smooth :/

     

    Anyone can fix this..? (It is hard to see, kindly zoom a little to see.)

     

    Water is at -20 (No water on map).

     

    dots.png

  7. no

    instead of using tortoiseSVN last year, now I'm using tortoiseGIT

    its made by same company, so the interface isn't far off

    you'll get used to it once you get your hands on tortoiseGIT

    actually, just add this line

    #define SCRIPT_CMD_SUCCESS 0
    should make my patch work on your server already

     

    That worked well!, Thanks!

  8. you are not using latest rathena =/

    https://github.com/rathena/rathena/blob/master/src/map/script.c#L177

    add those lines you think your server is missing

     

    I haven't updated since rathena moved to GIT (I have tried many times, I crai everytyme ;_;, the interface is too confusing! I really prefer SVN.) /panic

     

    If I copied the entire script.c from the newest, will it conflict with other files? (Since I don't really want to update the server yet...)

    (Because I can proudly say that I can't) /shy

     

    (If only GIT developer were as considerate to make it more user-friendly as SVN.. that would be great!)

     

    EDIT :

     

    Uh oh.. I replaced my entire script.c

    encountered even more errors! /omg

    I think my server is done for! /panic

    1>c:\rathena\src\map\script.c(6462): error C2065: 'IT_SHADOWGEAR' : undeclared identifier
    1>c:\rathena\src\map\script.c(6477): error C2065: 'IT_SHADOWGEAR' : undeclared identifier
    1>c:\rathena\src\map\script.c(6644): warning C4020: 'itemdb_searchrandomid' : too many actual parameters
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_ARMOR' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_WEAPON' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_SHIELD' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_SHOES' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_ACC_R' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(7358): error C2065: 'EQP_SHADOW_ACC_L' : undeclared identifier
    1>c:\rathena\src\map\script.c(7358): error C2099: initializer is not a constant
    1>c:\rathena\src\map\script.c(11311): error C2039: 'mob_id' : is not a member of 'mob_data'
    1> c:\rathena\src\map\mob.h(114) : see declaration of 'mob_data'
    1>c:\rathena\src\map\script.c(15015): error C2065: 'ITEMSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15015): error C2065: 'POINTSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15022): error C2065: 'ITEMSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15022): error C2065: 'POINTSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15049): error C2065: 'ITEMSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15049): error C2065: 'POINTSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15078): error C2065: 'ITEMSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15078): error C2065: 'POINTSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15109): error C2065: 'ITEMSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(15109): error C2065: 'POINTSHOP' : undeclared identifier
    1>c:\rathena\src\map\script.c(16954): error C2039: 'mob_id' : is not a member of 'mob_data'
    1> c:\rathena\src\map\mob.h(114) : see declaration of 'mob_data'
    1>c:\rathena\src\map\script.c(17538): warning C4020: 'itemdb_searchrandomid' : too many actual parameters
    1>c:\rathena\src\map\script.c(17547): warning C4013: 'itemdb_get_randgroupitem_count' undefined; assuming extern returning int
    1>c:\rathena\src\map\script.c(17583): warning C4013: 'itemdb_pc_get_itemgroup' undefined; assuming extern returning int
    1>c:\rathena\src\map\script.c(18063): error C2065: 'VIP_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18064): error C2065: 'MIN_STORAGE' : undeclared identifier
    1>c:\rathena\src\map\script.c(18206): error C2039: 'mon_trans_disable_in_gvg' : is not a member of 'Battle_Config'
    1> c:\rathena\src\map\battle.h(111) : see declaration of 'Battle_Config'
    1>c:\rathena\src\map\script.c(18218): error C2065: 'SC_MONSTER_TRANSFORM' : undeclared identifier
    1>c:\rathena\src\map\script.c(18219): error C2065: 'SC_MONSTER_TRANSFORM' : undeclared identifier
    1>c:\rathena\src\map\script.c(18263): error C2065: 'MAX_PC_BONUS_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18263): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18263): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18263): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18263): error C2198: 'strcmp' : too few arguments for call
    1>c:\rathena\src\map\script.c(18264): error C2065: 'MAX_PC_BONUS_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18275): error C2065: 'MAX_PC_BONUS_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18275): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18276): error C2065: 'MAX_PC_BONUS_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18277): error C2065: 'MAX_PC_BONUS_SCRIPT' : undeclared identifier
    1>c:\rathena\src\map\script.c(18282): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18282): warning C4090: 'function' : different 'const' qualifiers
    1>c:\rathena\src\map\script.c(18282): warning C4022: 'memcpy' : pointer mismatch for actual parameter 2
    1>c:\rathena\src\map\script.c(18282): error C2198: 'memcpy' : too few arguments for call
    1>c:\rathena\src\map\script.c(18283): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18284): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18285): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18286): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18287): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18289): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18290): error C2039: 'bonus_script' : is not a member of 'map_session_data'
    1> c:\rathena\src\map\pc.h(131) : see declaration of 'map_session_data'
    1>c:\rathena\src\map\script.c(18290): error C2198: 'clif_status_change' : too few arguments for call

    *Enters Panic State*

    *Run around havoc in my room*

    *Rolls around*

    *Crai everytyme*

  9. On 1/8/2014 at 11:52 PM, clydelion said:

    You can force the character to face any direction you want using pc_setdir(sd,b,h) function right after the character spawns.

    Is that in script? or in the char.c itself?.

    somehow I cannot find any documentation of the function pc_setdir(sd,b,h).

    Anyway you can tell me how to use it in my case?

    Thank you for replying!

    On 1/9/2014 at 2:07 AM, AnnieRuru said:

    FUN !

    why not make a script command to change the player's facing

    [paste=1ta6tj2tm187]

    then can use

    
    -	script	kdjhfksdjf	-1,{OnPCLoginEvent:	setdir DIR_SOUTH;	end;}
    this might be useful with pushpc script command

    Thats amazing /omg

    This should be official!

    Thanks a bunch!

     

    EDIT :

    Somehow I am getting errors.

    1>c:\rathena\src\custom\script.inc(40): error C2065: 'SCRIPT_CMD_SUCCESS' : undeclared identifier

    1>c:\rathena\src\custom\script.inc(58): error C2065: 'SCRIPT_CMD_SUCCESS' : undeclared identifier

    I crai

    ;_;

  10. While this may seem trivial, but this is extremely important for my server.

     

    When a player create a character, it started by facing "backwards", or "North".

     

    I wanted the new character to be facing "South", I know it is somewhere in the "Char.c"

    /wah

     

    But how do I do this..?

     

    I do not see any "Direction" option that is set when a new character is created.

     

    Thank you!

     

    /thx

     

  11. why not post this to the international section where most developers are?

    It mentioned about "luk" factor towards item drops,

    but the only thing I can find in relation is

    the "luck" can modify drop rates, but not to the point that

    it could be anyhow gamebreaking.

    (depends on server settings though,)

    in official, this is turned off.

    probably those cheaters could send a fake value

    and ensures a legitimate 100% drop rate through

    faking their "luk" packet value?

    this is not possible though, as they take the value from

    the server's sql database.

    probably by removing this feature this can be fixed?

    I don't even think the issue is the "luk" that they mentioned.

    it should be regarding something else.

  12. Why not open this up on GitHub?

    Gravity licensing issues?

    They allowed private server to run based on their assets.

    with a different emulator.

    This also uses gravity assets to run,

    with a different emulator.

    I think this should be fine and million times faster.

  13. The command to call back your changes in your code is

     

    git stash pop
    

     

    If there are any conflicts, it will place points in the code where the conflict was and you can then manually resolve them.

     

    What I wanted is so that it refers back to the "Original File" to check for "red exclamation marks" (Changes).

    Instead of refering back to the "Last saved stash" to check for changes. (Which is why its all green even with my changes.)

    I want it to compare with the original rathena file instead of my last saved stash.

     

    please help!

  14. I recently moved from SVN to GIT.

     

    When I tried to update my server,

     

    It tells me to stash the server, so I did.

     

    When I stashed the server, all the red exclamation (!) telling me what I have changed from the original

    rathena files dissapeared into green checks.

     

    Stash2.png

     

    Stash1.png

     

    How do I refer the changes back from the "original rAthena" instead of my "Last Saved Stash"?.

     

    It is very hard knowing what I have changed recently :(

     

    Please, I need those red exclamation back..!

×
×
  • Create New...