diff options
author | HoraK-FDF <horak-fdf@web.de> | 2024-06-01 11:20:10 +0200 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2024-06-06 19:46:45 +0000 |
commit | 62a866fb025efa73994ce11fa0638125953f224d (patch) | |
tree | 605b0d0bbef768b7acdd3199a289487583af0a20 /world/map/npc | |
parent | e7c3aa5af6e13bd6febfb024a32f0166a2e33cbd (diff) | |
download | serverdata-62a866fb025efa73994ce11fa0638125953f224d.tar.gz serverdata-62a866fb025efa73994ce11fa0638125953f224d.tar.bz2 serverdata-62a866fb025efa73994ce11fa0638125953f224d.tar.xz serverdata-62a866fb025efa73994ce11fa0638125953f224d.zip |
KeepAfterUse + DontUseAmmo
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/items/maps.txt | 9 | ||||
-rw-r--r-- | world/map/npc/items/rubber_bat.txt | 1 | ||||
-rw-r--r-- | world/map/npc/items/rubber_duck.txt | 5 | ||||
-rw-r--r-- | world/map/npc/items/scissors.txt | 1 | ||||
-rw-r--r-- | world/map/npc/items/shovel.txt | 5 | ||||
-rw-r--r-- | world/map/npc/items/silver_bell.txt | 4 | ||||
-rw-r--r-- | world/map/npc/items/warpTowels.txt | 15 | ||||
-rw-r--r-- | world/map/npc/scripts.conf | 2 |
8 files changed, 26 insertions, 16 deletions
diff --git a/world/map/npc/items/maps.txt b/world/map/npc/items/maps.txt new file mode 100644 index 00000000..29d54e7d --- /dev/null +++ b/world/map/npc/items/maps.txt @@ -0,0 +1,9 @@ +function|script|readMap +{ + message strcharinfo(0), "You have no clue how to use this item yet."; + goto L_Return; + +L_Return: + set @MapName$, ""; + return; +} diff --git a/world/map/npc/items/rubber_bat.txt b/world/map/npc/items/rubber_bat.txt index 0bf80ede..a849b40d 100644 --- a/world/map/npc/items/rubber_bat.txt +++ b/world/map/npc/items/rubber_bat.txt @@ -6,7 +6,6 @@ function|script|rubberBat goto L_Return; L_Return: - getitem "RubberBat", 1; // debugmes "Check"; if ($DOOMSDAY == 3) addtimer 10, "#TMWFinalExam::OnRubberBat"; diff --git a/world/map/npc/items/rubber_duck.txt b/world/map/npc/items/rubber_duck.txt index 3f591c15..3dba2368 100644 --- a/world/map/npc/items/rubber_duck.txt +++ b/world/map/npc/items/rubber_duck.txt @@ -1,11 +1,10 @@ function|script|rubberDuck { - if (gettimetick(2) - @lastbat < 2) goto L_Return; + if (gettimetick(2) - @lastduck < 3) goto L_Return; misceffect 406; - set @lastbat, gettimetick(2); + set @lastduck, gettimetick(2); goto L_Return; L_Return: - getitem "RubberDucky", 1; return; } diff --git a/world/map/npc/items/scissors.txt b/world/map/npc/items/scissors.txt index fbf3b344..2e12c6b1 100644 --- a/world/map/npc/items/scissors.txt +++ b/world/map/npc/items/scissors.txt @@ -1,6 +1,5 @@ function|script|useScissors { - getitem "Scissors", 1; if (rand(3)) goto L_Change; message strcharinfo(0), "Whoops!"; diff --git a/world/map/npc/items/shovel.txt b/world/map/npc/items/shovel.txt new file mode 100644 index 00000000..b706f1fe --- /dev/null +++ b/world/map/npc/items/shovel.txt @@ -0,0 +1,5 @@ +function|script|useShovel +{ + message strcharinfo(0), "You have no clue how to use this item yet."; + return; +} diff --git a/world/map/npc/items/silver_bell.txt b/world/map/npc/items/silver_bell.txt index 8a791bff..c1ea2e50 100644 --- a/world/map/npc/items/silver_bell.txt +++ b/world/map/npc/items/silver_bell.txt @@ -1,12 +1,10 @@ function|script|SilverBellSound { - if (gettimetick(2) - @lastsilverbell < 20) goto L_Return; + if (gettimetick(2) - @lastsilverbell < 3) goto L_Return; misceffect 404; set @lastsilverbell, gettimetick(2); goto L_Return; L_Return: - getitem "SilverBell", 1; -// debugmes "Check"; return; } diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt index 77a405b5..7ea7ec17 100644 --- a/world/map/npc/items/warpTowels.txt +++ b/world/map/npc/items/warpTowels.txt @@ -117,26 +117,25 @@ L_WarpPlayer: goto L_BreakChance; L_BreakChance: - if (rand(15)) - goto L_Keep; - getitem "HitchhikersTowel", 1; + if (@warpTowelName$ != "HitchhikersTowel" && rand(15) < 1) + goto L_Break; goto L_End; L_Forbid: message strcharinfo(0), "Towel : This area is protected by a force that doesn't tolerate the power of the Towel."; - goto L_Keep; + goto L_End; L_Prison: message strcharinfo(0), "Towel : You must be warped by a GM to leave the botcheck area."; - goto L_Keep; + goto L_End; L_DontPanic: callfunc "HumanTime"; message strcharinfo(0), "Towel : Your towel is still too low on power to jump again. Try again in ##B"+ @time$ + "##b."; - goto L_Keep; + goto L_End; -L_Keep: - getitem @warpTowelName$, 1; +L_Break: + delitem @warpTowelName$, 1; goto L_End; L_End: diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index 512c8d48..17045566 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -62,6 +62,8 @@ npc: npc/items/love_potion.txt npc: npc/items/manapearl_item.txt npc: npc/items/underworld_troll.txt npc: npc/items/silver_bell.txt +npc: npc/items/shovel.txt +npc: npc/items/maps.txt // Mob Functions npc: npc/mobs/miner_mania.txt |