Coder Social home page Coder Social logo

athenafishingsystem's Introduction

AthenaFishingsystem

image

Fishingsystem - Setup

This is a Serverside Plugin. It has to be added here: (/src/core/plugins/)

Add this to your import.ts-file:

'./FishingSystem/index',
'./FishingSystem/items'

Fishingsystem - Features

  • Fishingrod with durability & rarity (Fishingrod will be removed if its broken.)
  • Add as many Fishingpoints as you like
  • Interactionpoint for all Fishingspots
  • Blips for all Fishingspots
  • Players will be forced to look at waters direction
  • Random generated Fish output
  • Items will stack on each other if they already exist in players-inventory
  • Baits for fishing (rainworms)
  • Scenario for Fishing (you will have to synchronize fishingrod yourself if you wanna use animation)

Fishingsystem - Configuration

// All Fishingspots to create on bootup of Athena.
const fishingSpots = [
    { "x": 1298.842529296875, "y": 4215.44873046875, "z": 33.90863800048828 - 1 }, // Position of Spot 0
    { "x": 713.6202392578125, "y": 4092.444091796875, "z": 34.72782897949219 - 1 }, // Position of Spot 1
    { "x": 32.982933044433594, "y": 855.7935180664062, "z": 197.73194885253906 - 1 }, // Position of Spot 2
    { "x": -192.7390594482422, "y": 790.7300415039062, "z": 198.10739135742188 - 1 }, // Position of Spot 3
    { "x": -1850.4239501953125, "y": -1250.2908935546875, "z": 8.615777015686035 - 1 } // Position of Spot 4
];

const fishingSpotsRotations = [
    { "x": 0, "y": 0, "z": 3.017235040664673 }, // Rotation from Spot 0
    { "x": 0, "y": 0, "z": -3.0259671211242676 }, // Rotation from Spot 1
    { "x": 0, "y": 0, "z": -2.221445083618164 }, // Rotation from Spot 2
    { "x": 0, "y": 0, "z": 2.640841484069824 }, // Rotation from Spot 3
    { "x": 0, "y": 0, "z": 2.4196646213531494 } // Rotation from Spot 4
];

// Fishingsystem - General Setup
let fishingTime = 1000; // Only usefull if you are not using randomDuration.

const useAutoRotation = true; // Will force player to look at water while fishing. default: true
const randomDuration = true; // Use random duration for fishing time? default: true
const minDuration = 5000; // Min duration if using random duration.
const maxDuration = 15000; // Max duration if using random duration.

const interactionDescription = `Start fishing...`;

// Fishingsystem - Progressbar Setup
const useProgressBars = true; // enable progress bars (only seen by player) default: true
const progressBarRGBA = new alt.RGBA(0, 255, 0, 255); // Alpha (last) should always be 255.
const progressBarText = `Fishing...`;

const normalFishoutput = [
    "normal-fish-1", "normal-fish-2" // Add more if needed to items.ts and here.
];

/* Not in use for now. (Try to script by yourself.)

const rareFishoutput = [
    "", ""
];

const epicFishoutput = [
    "", ""
];

Not in use for now. (Try to script by yourself.) */

// Fishingsystem - Blip Setup
const blipSprite = 681; // default: 681
const blipColor = 2; // default: 2
const blipScale = 1; // default: 1
const blipShortRange = true; // default: true
const blipText = `Fishingspot`;

athenafishingsystem's People

Contributors

booster1212 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.