Venture Posted January 8, 2014 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Share Posted January 8, 2014 (edited) 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" But how do I do this..? I do not see any "Direction" option that is set when a new character is created. Thank you! Edited January 8, 2014 by gekigengar Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 8, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 8, 2014 (edited) 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 Edited January 8, 2014 by AnnieRuru 1 Quote Link to comment Share on other sites More sharing options...
0 ScarrFace Posted November 6, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Share Posted November 6, 2019 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 i got an error parse_line: expect command, missing function name or calling undeclared function * 4 : 's'etdir DIR_SOUTH; how to fix this? @AnnieRuru thank you! Quote Link to comment Share on other sites More sharing options...
clydelion Posted January 8, 2014 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted January 8, 2014 You can force the character to face any direction you want using pc_setdir(sd,b,h) function right after the character spawns. Quote Link to comment Share on other sites More sharing options...
Venture Posted January 8, 2014 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted January 8, 2014 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 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 ;_; Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 9, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 9, 2014 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 Quote Link to comment Share on other sites More sharing options...
Venture Posted January 9, 2014 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted January 9, 2014 (edited) 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.) 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) (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! I think my server is done for! 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* Edited January 9, 2014 by gekigengar Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 9, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 9, 2014 I follow this guide http://hercules.ws/board/topic/152-obtaining-hercules/?p=845 just change the hercules address with rathena address that you can click it at the top of the page Quote Link to comment Share on other sites More sharing options...
Venture Posted January 9, 2014 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted January 9, 2014 (edited) So Can I still use SVN to checkout from the GIT Link? http://rathena.org/board/topic/87120-transitioning-from-svn-to-git/?p=227682 You could actually still stick with SVN, you can just use the GIT repo as the checkout. svn co https://github.com/rathena/rathena/trunk According to Akinari, I could Edited January 9, 2014 by gekigengar Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 9, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 9, 2014 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 0should make my patch work on your server already 1 Quote Link to comment Share on other sites More sharing options...
Venture Posted January 9, 2014 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted January 9, 2014 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 0should make my patch work on your server already That worked well!, Thanks! Quote Link to comment Share on other sites More sharing options...
Question
Venture
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"
But how do I do this..?
I do not see any "Direction" option that is set when a new character is created.
Thank you!
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.