Jump to content

Poring King

Members
  • Posts

    1016
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by Poring King

  1. Server Data ? Then download the database and use it later on after updating it . Integrate your old data to new data
  2. Yes by reading script_commands . I learn a lot of things from there its very informative and user friendly . As you can see when i reply to people . I always advise them to read script_commands and before asking here in forums check in script commands
  3. You just need to change the requirement . I think rAthena already use yaml . The last time i see the item_db is the time when yaml format is introduce . The item_db in server side is now more informative than before and its more user friendly .
  4. Its server side . Go to your item db in server side find the item name or id change the value of required level
  5. If you want to change the item description in game . You can change it inside your client files . Find System info . But if you want to change it also on server side do it on item_db
  6. rAthena should apply this on master it will be more informative and very user friendly
  7. You can do that by declairing inside your client grf find clientinfo.xml. Add your gm account id there
  8. rAthena Wiki is very informative one
  9. Why trying to get a new one ? If you can use the most stable one with lot of support which is "Thor Patcher"
  10. Player must bring Leaf to resurrect party member or priest . It is a team base game play
  11. Have you tried @reloadnpcscript command ingame ?
  12. Yes you can do this . I made a simple twek to work this inside fluxcp by alter and adding a "server" column to feth all account that are using for certain server
  13. He said server not connection . Because if im not mistaken connection do first before login promp after that is server selection
  14. creating it using clientinfo is just 5-10% of it . You must configure the Database, SRC , Server files . That guide wont fix his request im just lazy to write it here because lot of things to do
  15. Yes i do this a lot of time . But only few people know how to do this After log in account you will must select which server you want to log in . Example: Valkyrie (99 current online) Nightmare server 255/120 ( 658 currently online ) Test Server ( 0 current online ) Thats how it look like to my end when i do this or you are referring to a proxy server ? Which this is how it works for proxy server . When client launch it will display all proxy connection that you want to connect like PROXY ( ASIA ) PROXY ( US SERVER) Etc then after selecting you will go to promp to LOGIN account ? . Which one you are looking for ?
  16. Try to re-write the script okay ? At least try it to your self . Do it with clean function first and try 1 by 1 so you can solve your things by your self . Because it might happen to you everytime
  17. Its a tab not space And make sure there is a "}" in the end of function . The error already tell the complete detail of whats going wrong function%TAB%script%TAB%funcNPC%TAB%{
  18. This is your error [Error]: buildin_callfunc: Function not found! [F_restore] So meaning you write your call function it should be The bold script is the one you are missing Function should be written like this . reference of writing npc script can be found inside script_commands line 1638 *callfunc "<function>"{,<argument>,...<argument>}; *callfunc("<function>"{,<argument>,...<argument>}) This command lets you call up a function NPC. A function NPC can be called from any script on any map server. Using the 'return' command it will come back to the place that called it. place,50,50,6%TAB%script%TAB%Woman%TAB%115,{ mes "[Woman]" mes "Let's see if you win..."; callfunc "funcNPC"; mes "Well done, you have won!"; close; } function%TAB%script%TAB%funcNPC%TAB%{ .@win = rand(2); if (.@win == 0) return; mes "Sorry, you lost."; close; } So it will look like this place,50,50,6%TAB%script%TAB%Woman%TAB%115,{ mes "[Woman]" mes "Let's see if you win..."; callfunc "funcNPC"; mes "Well done, you have won!"; close; } function%TAB%script%TAB%funcNPC%TAB%{ .@win = rand(2); if (.@win == 0) return; mes "Sorry, you lost."; close; }
  19. moc_para01,46,36,4 script Guild Blacksmith 826,{ if(countitem(40056) < 1){ goto notmember; } //============================ // functions //============================ // F_restore function F_restore { .@rental_item = getarg(0); .@item_1 = getarg(1); .@item_2 = getarg(2); .@item_3 = getarg(3); if(rentalcountitem(.@rental_item) < 1){ clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "You don't have a "; mes ""+ getitemname(.@rental_item) +"."; close; } if(countitem(.@item_1) < 1){ clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "You don't have a "+ getitemname(.@item_1) +"."; close; } if(countitem(.@item_2) < 10){ clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "You don't have 10 "+ getitemname(.@item_2) +"."; close; } clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Great, here is your new "+ getitemname(.@item_3) +"."; delitem (.@rental_item, 1); delitem (.@item_1, 1); delitem (.@item_2, 10); getitem (.@item_3, 1); close; } // Text //============================= soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Oh hello there, how can I help you ?"; switch(select("- Restore:- Upgrade Item Grade:- Cancel")){ case 1: goto restore1; case 2: goto upgradeclass; case 3: end; } // Restore //============================= restore1: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Oh, you need restore?"; switch(select("- Restore Information:- Restore Item:- Cancel")){ case 1: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Well, your item usually comes" mes "with a 7-day rental period,"; mes "but if you wish to extend"; mes "that rental period,"; mes "you can come to me"; mes "for a complete restore."; next; clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "To restore weapons or armor, I will need"; mes "- 1 Restore Token"; mes "- 10 Durengo Coins"; next; clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Just for the record, I will only"; mes "restore Tier 2 and above items."; next; clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "For tools, I will just need"; mes "- 1 Restore Token"; mes "- 5 Durengo Coins"; close; case 2: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Ok then, what item do you need to restore?"; switch(select("- Weapon:- Armor:- Tools:- Cancel")){ case 1: goto wep_restore; case 2: goto armor_restore; case 3: goto tool_restore; case 4: end; } case 3: end; } wep_restore: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Select Weapon Tier"; switch(select("- Tier 2:- Cancel")){ case 1: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Select the weapon you wish to restore"; switch(select("- Improvise Dagger:- Cancel")){ case 1: goto improdaggres; case 2: end; } case 2: end; } improdaggres: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Select Dagger Grade"; switch(select("- Grade A:- Grade B:- Grade C:- Grade D:- Grade E:- Cancel")){ case 1: callfunc "F_restore",40081,40225,40016,40082; break; case 2: end; case 3: end; case 4: end; case 5: end; case 6: end; } armor_restore: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Work In Progress"; close; tool_restore: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Work In Progress"; close; // Upgrade //============================= upgradeclass: clear; soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "Work In Progress"; close; // Members //============================= notmember: soundeffect "menu.wav",0; mes "^ce7e00 === Hafiz === ^000000"; mes "You need to be a member before I can assist you."; close; } Try this Added missing semicolons. Corrected "Upgread Item Gred" to "Upgrade Item Grade". Fixed indentation and logical flow. Corrected misspelled words. Ensured all cases in switches are properly closed with end; or break;.
  20. Here i have top 30 or you can adjust it using the configuration //============================= // NPC Script: Top 30 Deaths //============================= prontera,150,150,4 script Top Deaths 837,{ // Configuration Section OnInit: // Configurable variables .npc_name$ = "[Top Deaths]"; .limit = 30; // Limit of players to display // End of Configuration end; OnTalk: // Fetch the top 30 players with the most deaths query_sql("SELECT `name`, `death` FROM `char` ORDER BY `death` DESC LIMIT " + .limit, .@name$, .@deaths); // Display the top 30 players mes .npc_name$; mes "Top " + .limit + " Players Who Died the Most:"; for (.@i = 0; .@i < getarraysize(.@name$); .@i++) { mes (.@i + 1) + ". " + .@name$[.@i] + " - " + .@deaths[.@i] + " deaths"; } close; }
  21. You can use "npcwalkto" . You can see it on your server files script_commands to properly guide you how to use all npc script syntax
  22. I am also looking for it and planning to create a trend that will specify each episode NPC , Warp Portal , Storyline etc ..
×
×
  • Create New...