From 75ccd167d76aa0c5c5cf73e73bd5ea858a0eab23 Mon Sep 17 00:00:00 2001 From: depyraken Date: Sat, 2 Apr 2016 19:15:31 +0200 Subject: [PATCH] troubleshoot --- primitives/newbieland/fisherman.primitive | 28 +++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/primitives/newbieland/fisherman.primitive b/primitives/newbieland/fisherman.primitive index 67bdff6..661f9c4 100644 --- a/primitives/newbieland/fisherman.primitive +++ b/primitives/newbieland/fisherman.primitive @@ -303,22 +303,20 @@ checkIfInZone(); if(playerInRange_ret > 0){ (tmp)rndm(0, 1); - switch(v1){ - case 1000:{ // initfish - doInitFishAnim(); - v1++; - } - case 1001: - fishingloop(); - case 1100: // fish is under capture and approaching - fishUnderCapture(); - case 1101: // fish is under capture and is near - fishUnderCapture(); - case 1102: // fish is catchable - fishIsCatchable(); - case 1103: // fish catched + if(v1 == 1000){ // initfish + doInitFishAnim(); + v1++; + } else if(v1 == 1001){ // Fishing loop + fishingloop(); + } else if(v1 == 1100){ // fish is under capture and approaching + fishUnderCapture(); + } else if(v1 == 1101){ // fish is under capture and is near + fishUnderCapture(); + } else if(v1 == 1102){ // fish is catchable + fishIsCatchable(); + } else if(v1 == 1103){ // fish caught despawnPhase(); - case 1110: // fish escapes + } else if(v1 == 1110){ // fish escapes despawnPhase(); } } else {