diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/Changelog.txt | 4 | ||||
-rw-r--r-- | npc/guild/gldfunc_manager.txt | 7 | ||||
-rw-r--r-- | npc/jobs/custom/jobchange.txt | 2 | ||||
-rw-r--r-- | npc/sample/PCLoginEvent.txt | 22 |
4 files changed, 32 insertions, 3 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt index a20f1de19..09b33f62a 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -35,6 +35,10 @@ Other Ppl Date Added ====== +03/24 + * Added support for Emsolute Develop in the guild manager script [celest] + * Fixed the custom jobchanger allowing Super Novices to change to high novice, + thanks to CavaCava 03/23 * WOE 1.3 Now you can't install Guardians during WOE [Lupus] * Set only Storage/Cancel to Kafra in Niflheim. [Lupus] diff --git a/npc/guild/gldfunc_manager.txt b/npc/guild/gldfunc_manager.txt index ec40e5a1e..577cd37e4 100644 --- a/npc/guild/gldfunc_manager.txt +++ b/npc/guild/gldfunc_manager.txt @@ -4,7 +4,7 @@ //= jAthena - kalen (1.0) //= 1.1 by Akaru, ho|yAnge|X, and Valaris //===== Current Version: ===================================== -//= 1.3 +//= 1.31 //===== Compatible With: ===================================== //= eAthena 0.1+; RO Episode 4+ //===== Description: ========================================= @@ -19,6 +19,7 @@ //= arg(3): y1 coordinate for warp to treasure room //= arg(4): guild script suffix for kafra, gaurdian scripts etc. //===== Additional Comments: ================================= +//= v1.31: Added support for Emsolute Develop [celest] //= v1.2: All Guild manager scripts use this function. Optimized //= Comerce and Defense investment. [kobra_k88] //= v1.2a Function now returns to script that called it. @@ -116,6 +117,8 @@ L_Start: set Zeny,Zeny-@eco_invest; SetCastleData getarg(1)+".gat",4,@TriggerE+1; SetCastleData getarg(1)+".gat",2,@Economy+1; + // if we learnt Emsolute Develop there's a chance to get +1 investment again + if (getgdskilllv(@GID,10014) > 0) && rand(100)>50) set @Economy, @Economy + 1; mes "[ "+getarg(0)+" ]"; mes "You have invested successfully."; return 0; @@ -172,6 +175,8 @@ L_Start: SetCastleData getarg(1)+".gat",3,@Defence+1; // set new hp values for guardians set @Defence, @Defence + 1; + // if we learnt Emsolute Develop there's a chance to get +1 investment again + if (getgdskilllv(@GID,10014) > 0) && rand(100)>50) set @Defence, @Defence + 1; set @AGuardian, 28634 + (@Defence*2000); set @KGuardian, 30214 + (@Defence*2000); set @SGuardian, 15670 + (@Defence*2000); diff --git a/npc/jobs/custom/jobchange.txt b/npc/jobs/custom/jobchange.txt index e69c42595..11c313772 100644 --- a/npc/jobs/custom/jobchange.txt +++ b/npc/jobs/custom/jobchange.txt @@ -22,7 +22,7 @@ mes "Sup? I'm the insanely cool and uber cute jobchanger thingy for eAthena! Fir next; menu "First Class",LFirstClass,"Second Class (2-1)",LSecondClass,"Alternate Second Class (2-2)",LSecondClass2,"Novice High",LNovice2,"Advance First Class",Llevelcheck,"Advance Second Class",Llevelcheck,"Super Novice",LSuperNovice; LNovice2: - if ((readparam(11) >= 99) && (readparam(55) >= 50) || (readparam(19) > 20)) goto Lchange; + if ((readparam(11) >= 99) && (readparam(55) >= 50) || ((readparam(19) > 20) && (readparam(19) != 23)) goto Lchange; mes "[ ^0065DFJobra^000000 ]"; mes "Ummmm, excuse me... o.O..."; mes "Hey! You don't MEET the class requirements..."; diff --git a/npc/sample/PCLoginEvent.txt b/npc/sample/PCLoginEvent.txt index d668c0960..707398277 100644 --- a/npc/sample/PCLoginEvent.txt +++ b/npc/sample/PCLoginEvent.txt @@ -26,8 +26,28 @@ // 7) Modify this script to your liking and give your players a surprise // 8) Remember: IT RUNS LIKE A NORMAL NPC. BUT THE ONLY WAY TO 'CLICK' IT IS BY // LOGGING ON +// 9) There are 2 ways to use this - check the examples below! - +// +// The 1st type -- with 'event_script_type' set to 0 +// prontera.gat,0,0,0 script PCLoginEvent -1,{ end; +} + +// +// The 2nd type -- with 'event_script_type' set to 1 +// +prontera.gat,155,175,0 script An NPC 46,{ + close; +PCLoginEvent: + // this part will run + close; +} + +prontera.gat,156,176,0 script Another NPC 46,{ + close; +PCLoginEvent: + // this part runs AS WELL + close; }
\ No newline at end of file |