diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-01 21:30:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-01 21:30:02 -0300 |
commit | 44862dca9b6f26513f23ea1fd79365c7a8d33d9e (patch) | |
tree | d125ad9b9249c6f061a11991ec1b5d742662236c /npc/003-1 | |
parent | d3c277d189ff513258f290c84680d275c4d05e0c (diff) | |
download | serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.gz serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.bz2 serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.xz serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.zip |
Use rand2() instead of rand() in several places
Diffstat (limited to 'npc/003-1')
-rw-r--r-- | npc/003-1/ishi.txt | 2 | ||||
-rw-r--r-- | npc/003-1/lieutenantdausen.txt | 4 | ||||
-rw-r--r-- | npc/003-1/quirino.txt | 2 | ||||
-rw-r--r-- | npc/003-1/swezanne.txt | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index e371acfc5..2283af685 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -159,7 +159,7 @@ L_Items: //debugmes "Setting reward"; // could be if (!.@lucked) but for sanity... if (.@reward$ == "") - set .@reward$, @Items$[rand(getarraysize(@Items$))]; + .@reward$=any_of(@Items$); //debugmes "Check weight"; .@weight = checkweight(.@reward$,1); diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt index 7f0569819..74503a99a 100644 --- a/npc/003-1/lieutenantdausen.txt +++ b/npc/003-1/lieutenantdausen.txt @@ -286,7 +286,7 @@ OnInit: // Render random guard answer after bringing him water function script GuardsGratitude { - switch (rand(6)) + switch (rand2(6)) { case 0: .@message$ = l("God bless you! You have saved me from sweltering!"); @@ -307,7 +307,7 @@ function script GuardsGratitude { .@message$ = l("Who are you? Thanks for the help."); break; default: - .@message$="Thank you!"; + .@message$=l("Thank you!"); break; } diff --git a/npc/003-1/quirino.txt b/npc/003-1/quirino.txt index 44cb3a007..669cb61ed 100644 --- a/npc/003-1/quirino.txt +++ b/npc/003-1/quirino.txt @@ -91,7 +91,7 @@ L_SignUp: if(@cartinventorylist_count>=1) goto L_Full; // Warp player - if (rand(1,2) == 1) + if (rand2(1,2) == 1) warp "001-8", rand(42, 57), 42; else warp "001-8", rand(42, 57), 57; diff --git a/npc/003-1/swezanne.txt b/npc/003-1/swezanne.txt index ade6a9b8a..d201f62b0 100644 --- a/npc/003-1/swezanne.txt +++ b/npc/003-1/swezanne.txt @@ -29,7 +29,7 @@ L_Heroics: next; mesn; - .@d=rand(1,6); + .@d=rand2(1,6); if (.@d == 1) .@deed$="protected our cities!"; else if (.@d == 2) .@deed$="did great acts of bravery!"; |