Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    409

Everything posted by Emistry

  1. Emistry

    Party Devotion

    conf/battle/skill.conf#L189 // Using 'old' behavior for devotion vs reflect damage? (Note 2) // Default is 0 (official). If 'devotion_rdamage' is > 0 (chance to devote the reflected damage), // when player with devotion attacks player with reflect damage ability (item bonus or skill), // the damage will be taken by the person who provides devotion instead the attacker. devotion_rdamage: 0
  2. OnPCStatCalcEvent: if( Class == Job_Blacksmith || Class == Job_Assassin || Class == Job_Sage || Class == Job_Taekwon || Class == Job_Star_Gladiator || Class == Job_Star_Gladiator2 || Class == Job_Soul_Linker || Class == Job_SuperNovice || Class == Job_Gunslinger || Class == Job_Ninja ) bonus2 bExpAddRace,RC_All,100; end;
  3. find and disable everything that added after episode 10.1 .....
  4. doc/script_commands.txt#L971 OnPCStatCalcEvent: This special label triggers when a player's stats are recalculated, such as when changing stats, equipment, or maps, as well as when logging in, leveling up, and mounting a job mount. This can be used to grant additional item bonuses to certain player groups, for instance.
  5. use npcskill / unitskilluseid / unitskillusepos use readparam
  6. your script is quite long and redundancy ... basically you could do it this way ... when talk to NPC select warp menu, reset variable to 0. (except last warp). if it's a paid map, set the variable to the cost for warp. whenever use last warp option, check for the variable. if the variable isnt 0 , then check for zeny requirement, deduct zeny, and warp.
  7. https://github.com/rathena/rathena/commits/master
  8. if ( A || B || C || D || E ) { /// script..... /// script..... }
  9. replace && with || instead.
  10. Look fun =D
  11. why search for an old script when you already can get a better one here ?? npc/custom/quests/quest_shop.txt
  12. you wont really get the accurate values... imagine you use AOE Skill to kill MVP .. you try to get the item drops of MVP ... but you end up getting the item list from the slave, because your AOE skills hit the slaves as well right after the mvp died.
  13. db/map_index.txt you can find alot here.
  14. conf/battle/player.conf#L82 // Maximum SP. (Default is 1000000) max_sp: 1000000
  15. you are using wrong type of variable .... your variable doesnt persist after script executed.
  16. Emistry

    PMing NPC

    add OnWhisperGlobal event to the said npc.
  17. https://rathena.org/board/topic/78263-scripting-faqtipstricks/?p=267219
  18. OnPCKillEvent: if ( @kill < 10 ) @kill++; end; OnPCDieEvent: if ( @kill > 0 ) { @kill--; } end;
  19. that's because you didnt have any npc script that will update the @kill variable.
  20. change clientinfo.xml langtype 0 or 1 if not mistaken.
  21. ..........{},{ if ( RebornPoint < 100 ) unequip <part>; },{} try this way?
  22. you can consider to use progressbar and not sleep2
  23. //===== rAthena Script ======================================= //= Reset NPC //===== By: ================================================== //= rAthena Dev Team //===== Current Version: ===================================== //= 1.06 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Resets skills, stats, or both. //= https://rathena.org/board/topic/102190-stat-reset-with-dynamic-price/ //===== Additional Comments: ================================= //= 1.00 First Version //= 1.01 Optimized for the greater good. [Kisuka] //= 1.02 Cleaning [Euphy] //= 1.03 All statuses removed upon skill reset. [Euphy] //= 1.04 Compressed Script [Stolao] //= 1.05 Added limit use option [Stolao] //= 1.06 Added Dynamic Pricing For Bisuke on Rathena [Stolao] //============================================================ prontera,150,193,4 script Reset Girl 124,{ // Skills, Stats, Both, Limit if(BaseLevel > 85){ set .@Reset, 100000, 100000, 90000, 0; else if(BaseLevel > 75){ set .@Reset, 75000, 75000, 70000, 0; else if(BaseLevel > 45){ set .@Reset, 50000, 50000, 50000, 0; else { set .@Reset, 10000, 10000, 9000, 0; } mes "[Reset Girl]"; if(.@Reset[3] && reset_limit > .@Reset[3]) { mes "Sorry you can only reset "+.@Reset[3]+" time in your life."; close; } mes "I am the Reset Girl."; mes "Reset Stats: "+ callfunc("F_InsertComma",.@Reset[1]) +"z"; mes "Reset Skills: "+ callfunc("F_InsertComma",.@Reset[0]) +"z"; mes "Reset Both: "+ callfunc("F_InsertComma",.@Reset[2]) +"z"; mes "Please select the service you want:"; next; set .@i,(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")); if(.@i > 3) close; mes "[Reset Girl]"; if (Zeny < .@Reset[.@i-1]) { mes "Sorry, you don't have enough Zeny."; close; } if(.@Reset[3]){ mes "You can only reset "+.@Reset[3]+" time in your life, are you sure?"; if(select("Let me think:Thats fine") == 1) close; } set Zeny, Zeny-.@Reset[.@i-1]; if(.@i&1){ sc_end SC_ALL; ResetSkill; } if(.@i&2) ResetStatus; mes "There you go!"; if(.@Reset[3]) set reset_limit,reset_limit + 1; close; } here you are although an easier option would be to make it x cost per leveleg: set .@Reset, BaseLevel * BaseLevel * 10, JobLevel * JobLevel * 15, BaseLevel * JobLevel * 9, 0; hmm? set ?? or setarray ??
  24. if((BaseClass == Job_Merchant || BaseJob == Job_SuperNovice || BaseJob == Job_Super_Baby || BaseJob == Job_Baby_Merchant || BaseJob == Job_Baby_Blacksmith || BaseJob == Job_Baby_Alchem || BaseJob == Job_Baby_Alchemist) && checkcart() == 0 && (getskilllv("MC_PUSHCART") > 0) ) { just use if( checkcart() == 0 && getskilllv("MC_PUSHCART") > 0 ) {
  25. I think it's possible by edit the .htaccess file.
×
×
  • Create New...