Jump to content

JayPee

Members
  • Posts

    633
  • Joined

  • Last visited

Everything posted by JayPee

  1. I guess its the same method on how you add Custom Items. And for the Weapon I think you need to generate a name which in weird characters like this Script do: eASpriteNameGen.rar
  2. JayPee

    Editing Skills

    Let check if this is want you want : * Reduce the Dragons Breath damage You need to edit this: I dont know how the formula works maybe asking some devs if they do know how the formula works open src/map/battle.c find: case RK_DRAGONBREATH: md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; if (status_get_lv(src) > 100) md.damage = md.damage * status_get_lv(src) / 150; if (sd) md.damage = md.damage * (100 + 5 * (pc_checkskill(sd,RK_DRAGONTRAINING) - 1)) / 100; break; Try changing values in this formula md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; For example: md.damage = ((status_get_hp(src) / 100) + (status_get_max_sp(src) / 20)) * skill_lv; Iam not sure on my understanding with this: status_get_hp(src) / 100: is the current player hp and it need 100hp to increase its damage status_get_max_sp(src) / 20: is the current player sp and it need 20sp to increase its damage For the skill_lv i guess not to touch it I guess the higher the divisor is the lower the damage it will produce * Cap Its max Damage open src/map/battle.c find: if(skill_num==ASC_BREAKER) { //Breaker's int-based damage (a misc attack?) struct Damage md = battle_calc_misc_attack(src, target, skill_num, skill_lv, wflag); wd.damage += md.damage; } then add below if(skill_num == RK_DRAGONBREATH) { //500 000 is the max damage cap if(wd.damage > 500000) { wd.damage = 500000; } if(wd.damage2 > 500000) { wd.damage2 = 500000; } } After you made that changes kindly Recompile your server.
  3. Maybe there's an NPC that makes you have that Error. Try to change the NPC Sprite ID on the MAP you will be landing after Login
  4. Please refer here: http://rathena.org/wiki/Custom_Items
  5. Happy New Year!!!!!!!!!!!!!!
  6. Di ba base sa Magical Attack ang damage ng mga Mage Class? Medyo nalilito ako
  7. Tama ba ung mga nakalagay sa map_athena.conf, login_athena.conf, char_athena.conf and inter_athena.conf In char_athena.conf and map_athena.conf my makikita kang userid and password kelangan same sya dun sa login table in MYSQL na my S gender and 1 accountid . dapat same userid and password and your inter_athena.conf must have the correct database access information and correct database names/schema
  8. yep MYSQL sa tingin ko is kasi hindi mo nalagay lahat ng required tables for the database. You may use WAMP or XAMPP para magkaroon ka ng PHPMYADMIN with Apache and PHP or this MYSQL QUERY BROWSER
  9. Did you already created a database? If not you need to create and import the required tables which is included in the sql-files folder inside your server files You may use phpmyadmin or mysql query browser to create a database. I think the sql required files are: * main.sql * item_db and item_db2.sql * item_db_re.sql * mob_db.sql and mob_db2.sql * mob_skill_db.sql and mob_skill_db2.sql * logs.sql(pede mo itong ihiwalay na database)
  10. File Name: Free Neon Cube Patcher File Submitter: JayPeeMateo File Submitted: 30 Dec 2011 File Category: Client Resources Terms and Condition: I dont care if you remove my name in the credits. I dont care where you want to use it whether you sell it etc.. This is free to use and you can redistribute it. Click here to download this file
  11. File Name: Free Thor Patcher Integrated File Submitter: JayPeeMateo File Submitted: 30 Dec 2011 File Category: Client Resources Terms and Conditions: I dont care if you remove my name on the credits I dont care where you want to use it whether you sell it etc.. This is a free to use. Click here to download this file
  12. File Name: Free Ceres Integration with Thor Patcher Design File Submitter: JayPee File Submitted: 30 Dec 2011 File Category: Web Resources Content Author: JayPee Terms and Conditions: I really don't care if you remove my name in the credits and claim it as yours. I really dont care where you want to use it whether you sell it etc... You can redistribute it and read number 2. How to put contents on the pages: You can see all the pages at the content folder If you want to set the first content the user will see just edit the motd.php To edit the link you need to find the anchor tags(<a></a>) at the index.php Click here to download this file
  13. Version None

    3223 downloads

    Terms and Conditions: I dont care if you remove my name on the credits I dont care where you want to use it whether you sell it etc.. This is a free to use.
    Free
  14. Version None

    1339 downloads

    Terms and Condition: I dont care if you remove my name in the credits. I dont care where you want to use it whether you sell it etc.. This is free to use and you can redistribute it.
    Free
  15. Version None

    2200 downloads

    Terms and Conditions: I really don't care if you remove my name in the credits and claim it as yours. I really dont care where you want to use it whether you sell it etc... You can redistribute it and read number 2. How to put contents on the pages: You can see all the pages at the content folder If you want to set the first content the user will see just edit the motd.php To edit the link you need to find the anchor tags(<a></a>) at the index.php
    Free
  16. Replace your register.inc.php includes/ folder register.inc.php
  17. my eathena login db also have a birthday column in my login table. Kindly check if your login table has a birthday column if not try adding it columnname - birthdate datatype - DATE you may use phpmyadmin or mysql query browser
  18. What server you use rathena, eathena or 3ceam or you just added manually to the database?? Coz It works fine on me
  19. Mark this as solved just to make the forum clean
  20. Here: Changes: * I replace the php function ereg because its been decapriciated or not highly recommended to use. * I put some HTML5 and apply a datepicker on the birthday field and add some error messages. iris_acc_reg2.rar
  21. char_id and guild_id both returns an integer or numerical value. a variable that ends with a $ means it is a string variable but a variable do not end with a $ it is considered as integer or numerical variable .myvar$ - this is string variable. .myvar - this is integer or numerical variable.
  22. This is my first script in which I use setd and getd to create a some what a MultiDimensional Array prontera,153,169,4 script ItemGiver 123,{ //Configuration: set .npcname$,"Item Giver"; set .arrayCounter,0; //Categories // This are the Categories of your Items setd ".Categories_0$","Headgear"; setd ".Categories_1$","Armors"; setd ".Categories_2$","Footgears"; //Headgears setd ".Item_0_0",501; //ItemID setd ".Item_0_0_0",124; //Amount setd ".Item_0_0_0_0",506; //Required ITEMID setd ".Item_0_0_0_0_1",20; //Required Amount setd ".Item_0_0_0_1",507; //Required ITEMID setd ".Item_0_0_0_1_1",20; //Required Amount setd ".Item_0_1",502; //ItemID setd ".Item_0_1_0",124; //Amount setd ".Item_0_1_0_0",506; //Required ITEMID setd ".Item_0_1_0_0_1",20; //Required Amount setd ".Item_0_1_0_1",507; //Required ITEMID setd ".Item_0_1_0_1_1",20; //Required Amount //Armors setd ".Item_1_0",503; //ItemID setd ".Item_1_0_0",20; //Amount setd ".Item_1_0_0_0",506; //Required ITEMID setd ".Item_1_0_0_0_1",20; //Required Amount setd ".Item_1_0_0_1",507; //Required ITEMID setd ".Item_1_0_0_1_1",20; //Required Amount setd ".Item_1_1",504; //ItemID setd ".Item_1_1_0",124; //Amount setd ".Item_1_1_0_0",506; //Required ITEMID setd ".Item_1_1_0_0_1",20; //Required Amount setd ".Item_1_1_0_1",507; //Required ITEMID setd ".Item_1_1_0_1_1",20; //Required Amount //Footgears setd ".Item_2_0",505; //ItemID setd ".Item_2_0_0",20; //Amount //Format: //.Item_Cateogry_ItemID_0_RequiredITEMID //.Item_Cateogry_ItemID_0_RequiredITEMID_AMOUNT = 1 setd ".Item_2_0_0_0",506; //Required ITEMID setd ".Item_2_0_0_0_1",20; //Required Amount setd ".Item_2_0_0_1",507; //Required ITEMID setd ".Item_2_0_0_1_1",20; //Required Amount setd ".Item_2_0_0_2",508; //Required ITEMID setd ".Item_2_0_0_2_1",20; //Required Amount setd ".Item_2_0_0_3",508; //Required ITEMID setd ".Item_2_0_0_3_1",20; //Required Amount mes .npcname$; mes "Hello how may I help you?"; callsub CountArrayString,".Categories_",""; //Count the Elements to a given setd array set .makeMenu$,""; set .categoryCount,.arrayCounter; for(set .i,0;.i<.arrayCounter;set .i,.i+1) { if(.makeMenu$=="") set .makeMenu$,getd(".Categories_"+.i+"$"); else set .makeMenu$,.makeMenu$+":"+getd(".Categories_"+.i+"$"); } set .selectMenu,select(.makeMenu$); mes getd(".Categories_"+(.selectMenu-1)+"$"); set .makeMenu$,""; callsub CountArrayInt,".Item_"+(.selectMenu-1)+"_",(-1); //Count the Elements to a given setd array for(set .j,0;.j<.arrayCounter;set .j,.j+1) { if(.makeMenu$=="") set .makeMenu$,"["+getd(".Item_"+(.selectMenu-1)+"_"+.j+"_0")+" pc(s).] - "+getitemname(getd(".Item_"+(.selectMenu-1)+"_"+.j)); else set .makeMenu$,.makeMenu$+":"+"["+getd(".Item_"+(.selectMenu-1)+"_"+.j+"_0")+" pc(s).] - "+getitemname(getd(".Item_"+(.selectMenu-1)+"_"+.j)); } set .selectItem,select(.makeMenu$); callsub CountArrayInt,".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_",(-1); //Count the Elements to a given setd array next; set .isNotAllowed,2; mes .npcname$; mes "Requirements:"; for(set .i,0; .i<.arrayCounter;set .i,.i+1) { mes "["+getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i+"_1")+" pcs. ] "+getitemname(getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i)); if(countitem(getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i)) < getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i+"_1")) { set .isNotAllowed,1; } } set .yesno,select("Yes:No"); if(.yesno==1 && .isNotAllowed==2) { for(set .i,0; .i<.arrayCounter;set .i,.i+1) { delitem getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i),getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0_"+.i+"_1"); } getitem getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)),getd(".Item_"+(.selectMenu-1)+"_"+(.selectItem-1)+"_0"); } else { next; mes .npcname$; mes "You do not meet the requirements"; mes "Please go away!"; } close; CountArrayInt: //Use Count Array Like Integer Variables set .arrayCounter,0; while(1) { if(getarg(1)>=0) set .arrname$,getarg(0)+(.arrayCounter)+getarg(1); else set .arrname$,getarg(0)+(.arrayCounter); if(getd(.arrname$)==0) { set .arrname$,""; return; } else { set .arrayCounter,.arrayCounter+1; continue; } } end; CountArrayString: //Use Count Array Like String Variables set .arrayCounter,0; while(1) { if(getarg(1)!="") set .arrname$,getarg(0)+(.arrayCounter)+getarg(0)+"$"; else set .arrname$,getarg(0)+(.arrayCounter)+"$"; if(getstrlen(getd(.arrname$))==0) { set .arrname$,""; return; } else { set .arrayCounter,.arrayCounter+1; continue; } } end; }
×
×
  • Create New...