Jump to content

yuchinin

Members
  • Posts

    120
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by yuchinin

  1. Maybe this is what you want. Try it function<TAB>script<TAB>Func_RefreshRank<TAB>{ switch ( rank_level ) { case 1: .@rank_title$ = "Seasonal"; break; case 2: .@rank_title$ = "Addicted"; break; case 3: .@rank_title$ = "Pro"; break; case 4: .@rank_title$ = "God"; break; default: .@rank_title$ = "Newbie"; break; } atcommand "@fakename "+strcharinfo(0)+" - "+.@rank_title$; return; } Just simply run this function "Func_RefreshRank" after you change your rank_level variable. Maybe you need this too. A suggestion: This will auto change the name for you when character enter a map. -<TAB>script<TAB>RankSystem<TAB>-1,{ OnPCLoadMapEvent: Func_RefreshRank(); }
  2. File Name: Part Time System + Restaurant( Waiter , Chef , Bartender , etc ) File Submitter: yuchinin File Submitted: 08 Feb 2016 File Category: Games, Events, Quests Content Author: Yuchinin //===== rAthena Script =======================================//= Part Time Function //===== By: ==================================================//= Yuchinin//===== Current Version: =====================================//= 1.0//===== Compatible With: =====================================//= rAthena Project//===== Description: =========================================//= A part time system I wrote for testing my skill.//= Currently only waiter part is completed.//= May contain bug or unfinish stuff//=====******** Note ********=================================//= This will add nothing but function for://= ~ Part Time System + Restaurant( Waiter , Chef , Bartender , etc ) (npc.txt)//= Better let this load first before adding my other script.//===== Additional Comments: =================================//= 1.0 Initial release.//============================================================ //===== rAthena Script =======================================//= Part Time System + Restaurant( Waiter , Chef , Bartender , etc )//===== By: ==================================================//= Yuchinin//===== Current Version: =====================================//= 1.1//===== Compatible With: =====================================//= rAthena Project//===== Description: =========================================//= A part time system I wrote for testing my skill.//= Currently only waiter part is completed.//= May contain bug or unfinish stuff//=====******** Note ********=================================//= This script need my release of://= 1. Common Useful Function (common.txt)//= 2. Part Time Function (function.txt)//= Better let it load first before adding my other script.//===== Additional Comments: =================================//= 1.0 Initial release.//= 1.1 Fixed stuck when waiter claiming wages (arrdel)//============================================================ I am going to play the firework now! After that will upload screenshot. Happy Chinese New Year 2016 to Everyone!!! XD Click here to download this file
  3. File Name: FIXED*Slot Machine + Bevarage Vending Machine (Simulate Vending Machine System) File Submitter: yuchinin File Submitted: 08 Feb 2016 File Category: Games, Events, Quests Content Author: Yuchinin //===== rAthena Script =======================================//= Slot Machine + Bevarage Vending Machine (Simulate Vending Machine System)//===== By: ==================================================//= Yuchinin//===== Current Version: =====================================//= 1.1//===== Compatible With: =====================================//= rAthena Project//===== Description: =========================================//= A custom slot machine and vending machine I make few years ago.//= Using my Simulate Vending Machine System//= Need to insert coin to operate.//= It can also eject remaining coin for you.//= [ Note ] This is an rewrite from GmOcean Slot Machine.//= Part of the slot machine code are credited to GMOceon.//=====******** Note ********=================================//= This script need my release of://= 1. Common Useful Function (common.txt)//= Better let it load first before adding my other script.//= 2. You must also add vendingMachine.grf to your DATA.ini else it will not working properly//= 3. [Note] Some of the item data has been change ( 673,677,674,11506 ~ 11512 )//===== Additional Comments: =================================//= 1.0 Initial release.//= 1.1 Fixed F_Beverage function not found error and also add the iteminfo description file//============================================================ Click here to download this file
  4. Hi todhiro, do you mean adding a player like mob? Yes sir...Adding a Mob Like player.. Hi toshiro san, here is a simple step for you. 1. add a custom mob in your mobdb eg 2513 2. add this line in your mob_avail in your db folder "2513,24" (2513 is your custom mob id, 24 is gunslinger job id) 3. now the mob id sprite 2513 will be a gunslinger mob. pm me if you need more help~
  5. Kindly pm me if you need help~

  6. Hi todhiro, do you mean adding a player like mob?
  7. //===== rAthena Script ======================================= //= Slot Machine + Bevarage Vending Machine (Simulate Vending Machine System) //===== By: ================================================== //= Yuchinin //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= A custom slot machine and vending machine I make few years ago. //= Using my Simulate Vending Machine System //= Need to insert coin to operate. //= It can also eject remaining coin for you. //= [ Note ] This is an rewrite from GmOcean Slot Machine. //= Part of the slot machine code are credited to GMOceon. //=====******** Note ********================================= //= This script need my release of: //= 1. Common Useful Function (common.txt) //= Better let it load first before adding my other script. //= 2. You must also add vendingMachine.grf to your DATA.ini else it will not working properly //= 3. [Note] Some of the item data has been change ( 673,677,674,11506 ~ 11512 ) //===== Additional Comments: ================================= //= 1.0 Initial release. //= 1.1 Fixed F_Beverage function not found error and also add the description file //============================================================ Download: https://rathena.org/board/files/file/3434-slot-machine-bevarage-vending-machine-simulate-vending-machine-system/ Git: https://github.com/Yuchinin/rathena-script/tree/master/vending%20machine Edit: Fixed the F_Beverage function not found issue. Sorry my bad.
  8. //===== rAthena Script ======================================= //= Part Time System + Restaurant( Waiter , Chef , Bartender , etc ) //===== By: ================================================== //= Yuchinin //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= A part time system I wrote for testing my skill. //= Currently only waiter part is completed. //= May contain bug or unfinish stuff //=====******** Note ********================================= //= This script need my release of: //= 1. Common Useful Function (common.txt) //= 2. Part Time Function (function.txt) //= Better let it load first before adding my other script. //===== Additional Comments: ================================= //= 1.0 Initial release. //= 1.1 Fixed stuck when waiter claiming wages (arrdel) //============================================================ Download: https://rathena.org/board/files/file/3433-part-time-system-restaurant-waiter-chef-bartender-etc/ Edit: Add git repo since no one approve my script at download section. Git: https://github.com/Yuchinin/rathena-script/tree/master/part_time_system%201.1
  9. //===== rAthena Script ======================================= //= Common Useful Function //===== By: ================================================== //= Yuchinin //===== Current Version: ===================================== //= 1.2 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= A common useful function I wrote these few years. //= Hoping with these can help other to write useful script. //=====******** Note ********================================= //= This will be the core of my other script. //= Better let it load first before adding my other script. //===== Additional Comments: ================================= //= 1.0 Initial script. //= 1.1 Change function arrdel from using 'value' to 'index' //= 1.2 Fixed sql query bug //============================================================ Function List: //=================================== //= walktonpc({<unitid>,<distance>}) //= walk character in npc <distance> //=================================== //=================================== //= npcindistance(<distance>) //= check if distance with npc smaller or equal to <distance> //= return to the caller //= else walk in npc <distance> //=================================== //=================================== //= getVariable(<"npc variable name">,{"<owner>"}) //= return variable value //= owner will be calling npc if omitted //=================================== //=================================== //= setVariable(<"npc variable name">,{<"owner">}) //= set variable value //= owner will be calling npc if omitted //=================================== //=================================== //= arradd("<arrayname>",<value>,{<"owner">}) //= add value to array //= owner will be calling npc if omitted //=================================== //=================================== //= arrdel("<arrayname>",<index>,{<"owner">}) //= delete index from array //= owner will be calling npc if omitted //=================================== //=================================== // arrhas("<arrayname>",<value>,{<"owner">}) //= check if value in array //= return 1 if in else return 0 //=================================== //=================================== // arrfind("<arrayname>",<value>,{<"owner">}) //= return first found value index in array //= return -1 if not found //=================================== //=================================== // arrselect("<arrayname>",{<"label">,"<owner>"}) //= return selected array value after selection //= label add before selection //= owner will be calling npc if omitted //=================================== //============================== //= UpperFirst("<string>") //= return string with first string capital //============================== //========================================= //= getRemain(<sec>) //= return remaining time string //========================================= //========================================= //= CStr(<"string to change color">,{<"color name">}) //= return string with selected color //========================================= //========================================= //= CZeny(<zeny>,{<"delimiter">,<"symbol">}) //= return ease look zeny string //========================================= //========================================= //= Itemlink(<itemid>) //= return item string with itemlink added //========================================= // Below is custom inventory system for npc //=================================== //= invcount("<owner>") //= return inventory count //=================================== //=================================== //= invcountitem(<itemid>,"<owner>") //= return item count in inventory //=================================== //=================================== //= invselect("<owner>","<blacklistid>","<label>") //= add label before selection //= return itemid after selection //=================================== //=================================== //= invgetitem(<itemid>,"<owner>",{<amount>}) //= return itemid if success //= return 0 if fail //=================================== //=================================== //= invhasitem(<itemid>,"<owner>") //= return itemid if have item //= return 0 if don't have item //=================================== //=================================== //= invdelitem(<itemid>,"<owner>",{<amount>}) //= return itemid if success //= return 0 if fail //=================================== //=================================== //= invclear("<owner>") //= clear all inventory //=================================== download: https://rathena.org/board/files/file/3432-common-useful-function/ Git: https://github.com/Yuchinin/rathena-script/blob/master/common.txt
  10. Hi chris bug report on your Dungeon Party Service, the dispbottom message "It seems like that you are the only one, which is left online in your party, so you won't get any bonus or make any quest progress." keep appearing and our kill count didn't add up even we have 3~4 player in party.
  11. Do you just want me to modified the official refine function or request a new refiner npc? Also what is that Derefiner? I can't help if you don't specified it clearly
  12. Yeah the only information I can get is from Login Server, Map Server and Char Server just stay quite when he connect it. If you wanna take a look with teamviever, PM me when you are online~ Yeah the only information I can get is from Login Server, Map Server and Char Server just stay quite when he connect it. If you wanna take a look with teamviever, PM me when you are online~ Thanks benching for almost 3 hour testing and tweak, finally figure out the problem is at the noip. Conclusion is: just change my yxx.noip.me to yxx.no-ip.org and everything is in good condition~ Really thanks alot for the help benching.
  13. Sebikuh: I try logmein (Hamachi) before this and it work like a charm. And now I use http://www.canyouseeme.org/ to check my port. All of the port is opened and can be seen through public. Benching: Yeah there is no error when he connect to my server. (He just can't pass through the character selection) The only information the server output is at the logserv: [Status]: Connection of the account 'Skellex' accepted. [Info]: Closed connection from '120.138.93.108'. [Status]: Request for connection of Skellex (ip: 120.138.93.108) version=51 [Notice]: Authentication accepted (account: Skellex, id: 2000012, ip: 120.138.93 .108) And yes I sure I know you mean the error when he connect to my server but there is no error message from the server. Upper here is the only information I can get when he connect to my server. The charserv and mapserv didn't output any message when he connect.
  14. Yeah I just triple check again at http://www.canyouseeme.org/and my port is opened and it can see my service on char port. I have a intuition about the problem maybe at subnet...but.... or maybe because I am double routing? charserv: [Status]: Memory manager initialised: log/char-server.exe.leaks rAthena Development Team presents ___ __ __ _____/ | / /_/ /_ ___ ____ ____ _ / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/ / / / ___ / /_/ / / / __/ / / / /_/ / /_/ /_/ |_\__/_/ /_/\___/_/ /_/\__,_/ http://rathena.org/board/ [Info]: Git Hash: '118fa28ae9ac832e89968ce214c27b17d780027d' [Info]: Server supports up to '4096' concurrent connections. [Status]: Character server IP address : yxx.noip.me -> 192.168.0.101 [Info]: Done reading conf/import/char_conf.txt. [Info]: Done reading conf/char_athena.conf. [Info]: Done reading conf/import/inter_conf.txt. [Info]: Done reading conf/inter_athena.conf. [Info]: Done reading '132' messages in 'conf/msg_conf/char_msg.conf'. [Info]: Done reading conf/import/inter_conf.txt. [Info]: Done reading conf/inter_athena.conf. [Info]: Connect Character DB server.... (Character Server) [Status]: Done reading '50' entries in 'db/re/exp_guild.txt'. [Status]: Done reading '0' entries in 'db/import/exp_guild.txt'. [Status]: Finished Reading GeoIP Database. [Status]: Characters per Account: '0'. [Status]: Defaulting to 192.168.0.101 as our IP address [Info]: Start checking DB integrity [Info]: DB integrity check finished with success [Info]: Default map: 'prontera 156,191' [Status]: The char-server is ready (Server is listening on the port 6121). [Info]: Attempt to connect to login-server... [Status]: Connecting to 192.168.0.101:6900 [Status]: Connected to login-server (connection #2). [Status]: Awaiting maps from map-server. [Status]: Map-Server 0 connected: 925 maps, from IP 192.168.0.101 port 5121. [Status]: Map-server 0 loading complete. logserv: [Status]: Memory manager initialised: log/login-server.exe.leaks rAthena Development Team presents ___ __ __ _____/ | / /_/ /_ ___ ____ ____ _ / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/ / / / ___ / /_/ / / / __/ / / / /_/ / /_/ /_/ |_\__/_/ /_/\___/_/ /_/\__,_/ http://rathena.org/board/ [Info]: Git Hash: '118fa28ae9ac832e89968ce214c27b17d780027d' [Info]: Server supports up to '4096' concurrent connections. [Info]: loginconfig: client_version_to_connect = 51 [Info]: Finished reading conf/import/inter_conf.txt. [Info]: Finished reading conf/inter_athena.conf. [Info]: Finished reading conf/import/login_conf.txt. [Info]: Finished reading conf/login_athena.conf. [Info]: Done reading '23' messages in 'conf/msg_conf/login_msg.conf'. [Info]: Ipban conection made [Status]: The login-server is ready (Server is listening on the port 6900). [Info]: Connection request of the char-server 'JustRO' @ 192.168.0.101:6121 (acc ount: 'xxx', pass: 'xxx', ip: '192.168.0.101') [Notice]: Authentication accepted (account: ragnarok, id: 1, ip: 192.168.0.101) [Status]: Connection of the char-server 'JustRO' accepted. mapserv: [Status]: Memory manager initialised: log/map-server.exe.leaks rAthena Development Team presents ___ __ __ _____/ | / /_/ /_ ___ ____ ____ _ / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/ / / / ___ / /_/ / / / __/ / / / /_/ / /_/ /_/ |_\__/_/ /_/\___/_/ /_/\__,_/ http://rathena.org/board/ [Info]: Git Hash: '118fa28ae9ac832e89968ce214c27b17d780027d' [Info]: Server supports up to '4096' concurrent connections. [Info]: Char Server IP Address : '192.168.0.101' -> '192.168.0.101'. [Info]: Map Server IP Address : 'yxx' -> '192.168.0.101'. ... [Info]: Connecting to the Map DB Server.... [Status]: Connect success! (Map Server Connection) [Info]: [SQL]: Connecting to the Log Database log At 127.0.0.1... ... [Status]: Server is 'ready' and listening on port '5121'. [Status]: Attempting to connect to Char Server. Please wait. [Status]: Connecting to 192.168.0.101:6121 [Status]: Logging in to char server... [Status]: Successfully logged on to Char Server (Connection: '2'). [Status]: Sending maps to char server... ... [Status]: Map-server connected to char-server 'JustRO'. [Status]: Map Server is now online. bump
  15. Version 1.1

    1026 downloads

    //===== rAthena Script ======================================= //= Slot Machine + Bevarage Vending Machine (Simulate Vending Machine System) //===== By: ================================================== //= Yuchinin //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= A custom slot machine and vending machine I make few years ago. //= Using my Simulate Vending Machine System //= Need to insert coin to operate. //= It can also eject remaining coin for you. //= [ Note ] This is an rewrite from GmOcean Slot Machine. //= Part of the slot machine code are credited to GMOceon. //=====******** Note ********================================= //= This script need my release of: //= 1. Common Useful Function (common.txt) //= Better let it load first before adding my other script. //= 2. You must also add vendingMachine.grf to your DATA.ini else it will not working properly //= 3. [Note] Some of the item data has been change ( 673,677,674,11506 ~ 11512 ) //===== Additional Comments: ================================= //= 1.0 Initial release. //= 1.1 Fixed F_Beverage function not found error and also add the iteminfo description file //============================================================
    Free
  16. yeah I am pretty sure that there is no error in console. Not event see rejected message .Just this: logserv: [Status]: Connection of the account 'Skellex' accepted. [Info]: Closed connection from '175.142.23.173'. charserv don't event have any error message. Any suggestion? Edit: I event set all my console_silent to 0, also no any error
  17. This shall work~Just done it~ Thumb up if work~ Note: Remember to change <TAB> with your keyboard tab. poring_w01,100,100,5<TAB>script<TAB>Poring Ranking Npc<TAB>1002,{ function claimReward; mes "[ "+strnpcinfo(0)+" ]"; if(.status){ mes "Please come to me after the event end."; end; } claimReward(); end; OnMinute00: .status = 1; deletearray .charid,getarraysize(.charid); deletearray .val,getarraysize(.val); query_sql("DELETE FROM global_reg_value where str = '"+.variable_use$+"'"); announce "Poring Ranking Event has just started!",0; monster strnpcinfo(4),0,0,"--ja--",.mob_id,.mob_amt,strnpcinfo(3)+"::OnKill"; do{ sleep 1000; .tick += 1; }while(.tick <= .event_duration); .status = 0; killmonsterall strnpcinfo(4); announce "Poring Ranking Event has just end!",0; .@num = query_sql("SELECT char_id,value FROM global_reg_value where str = '"+.variable_use$+"' order by CAST(`value` AS SIGNED) desc limit 3",.charid,.val); for(.@x=0;.@x<.@num;.@x++){ announce "Rank "+(.@x+1)+" ["+rid2name(.charid[.@x])+" ] "+.variable_use$+": "+.val[.@x],0; } announce "Please claim the reward from "+strnpcinfo(0)+"!",0; announce "Poring Ranking Event has just ended!",0; end; OnKill: if(attachrid(getcharid(3))){ set getd(.variable_use$),getd(.variable_use$)+1; dispbottom "You gain "+.point_earn+" "+.variable_use$+" on killing "+getmonsterinfo(.mob_id,0)+"!"; } end; function claimReward { for(.@x=0;.@x<.@num;.@x++){ if(getcharid(0)==.charid[.@x]){ mes "Congratulation "+strcharinfo(0),"You Rank on "+(.@x+1)+" with "+getd(.variable_use$)+" "+.variable_use$; mes "You will been rewarded "+.prize_amt[.@x]+" x "+getitemname(.prize[.@x]); close2; getitem .prize[.@x],.prize_amt[.@x]; warp "SavePoint",0,0; break; } } mes "You get "+getd(.variable_use$)+" "+.variable_use$+" and fail to kick in first 3 rank.","Try harder next time!"; close2; warp "SavePoint",0,0; end; } OnInit: .mob_id = 1002; // mob id to spawn .mob_amt = 100; // mob amount to spawn .point_earn = 1; // point earn on each kill setarray .prize,671,675,673; // prize id list to get setarray .prize_amt,1,1,1; // prize amt list to get .event_duration = 5*60; // event duration .variable_use$ = "EVENTPOINTS"; // variable use }
  18. Hello Littlefoot I am here to help~ Do you mean 100% success rate on using TCG? Also what you mean Derifiner function?
  19. Will try again tomorrow Sebikuh~ Same result@@ stuck after seen the server name
  20. Erm... so in my case what should I put inside the subnet mask?
  21. Try to post my script

  22. Version 1.1

    655 downloads

    //===== rAthena Script =======================================//= Part Time Function //===== By: ==================================================//= Yuchinin//===== Current Version: =====================================//= 1.0//===== Compatible With: =====================================//= rAthena Project//===== Description: =========================================//= A part time system I wrote for testing my skill.//= Currently only waiter part is completed.//= May contain bug or unfinish stuff//=====******** Note ********=================================//= This will add nothing but function for://= ~ Part Time System + Restaurant( Waiter , Chef , Bartender , etc ) (npc.txt)//= Better let this load first before adding my other script.//===== Additional Comments: =================================//= 1.0 Initial release.//============================================================ //===== rAthena Script =======================================//= Part Time System + Restaurant( Waiter , Chef , Bartender , etc )//===== By: ==================================================//= Yuchinin//===== Current Version: =====================================//= 1.1//===== Compatible With: =====================================//= rAthena Project//===== Description: =========================================//= A part time system I wrote for testing my skill.//= Currently only waiter part is completed.//= May contain bug or unfinish stuff//=====******** Note ********=================================//= This script need my release of://= 1. Common Useful Function (common.txt)//= 2. Part Time Function (function.txt)//= Better let it load first before adding my other script.//===== Additional Comments: =================================//= 1.0 Initial release.//= 1.1 Fixed stuck when waiter claiming wages (arrdel)//============================================================ I am going to play the firework now! After that will upload screenshot. Happy Chinese New Year 2016 to Everyone!!! XD
    Free
  23. Scylla: tried changing 192.168.0.101 to 127.0.0.1 already with no luck, same result. benching:Yeah bro really yxx.noip.me and not yxx.no-ip.me . I can know the ip is correct because there is a login log at the login server. [Status]: Connection of the account 'GM02' accepted.[Info]: Closed connection from '175.xxx.23.xx3'. [Status]: Request for connection of GM02 (ip: 175.xxx.23.xx3) version=51 [Notice]: Authentication accepted (account: GM02, id: 2000001, ip: 175.xxx.23.xx 3) [Status]: Connection of the account 'GM02' accepted. [Info]: Closed connection from '175.xxx.23.xx3'. and also he can see the server name. Just can't reach the character selection page and come with at "fail to connnect server." message
  24. Thanks Scylla, I will try again tomorow~ Tell you the result tomorrow~
  25. My cousin is trying to connect to my server, he can access the login-server, but after successful login, he can't direct to char-server(can't select character). In same router, he can connect with no problem. I'm using no-ip. char_conf: // Login Server IP// The character server connects to the login server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. login_ip: 192.168.0.101 // The character server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. //bind_ip: 127.0.0.1 // Login Server Port login_port: 6900 char_ip: yxx.noip.me // Character Server Port char_port: 6121 map_conf: // Character Server IP // The map server connects to the character server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. char_ip: 192.168.0.101 // The map server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. //bind_ip: 127.0.0.1 // Character Server Port char_port: 6121 // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: yxx.noip.me // Map Server Port map_port: 5121 subnet: // Subnet support file // Format is: // subnet: net-submask:char_ip:map_ip // you can add more than one subnet (max 16) // check is if((net-submask & char_ip ) == (net-submask & servip)) => ok //subnet: 255.0.0.0:127.0.0.1:127.0.0.1 subnet: 255.0.0.0:192.168.0.101:192.168.0.101 subnet: 255.0.0.0:yxx.noip.me:yxx.noip.me all the port is opened since I check it with http://www.canyouseeme.org/ He can login but after login he can't get through to character selection screen. Can someone help me on this? thanks~ logserv.bat screen [Status]: Connection of the account 'Skellex' accepted. [Info]: Closed connection from '120.138.93.108'. [Status]: Request for connection of Skellex (ip: 120.138.93.108) version=51 [Notice]: Authentication accepted (account: Skellex, id: 2000012, ip: 120.138.93 .108)
×
×
  • Create New...