I need a professional scripter to help me here :/
I want a script that when player:
1) says '!fishing'
2) brings up a text dialogue (like !spells brings up a book)
3) views all the fishing monsters and views a count of how many times the player has caught the monster
This is my script so far, i dont know what im doing so need some help :/
I want a script that when player:
1) says '!fishing'
2) brings up a text dialogue (like !spells brings up a book)
3) views all the fishing monsters and views a count of how many times the player has caught the monster
This is my script so far, i dont know what im doing so need some help :/
Code:
function onSay(cid, words, param, channel)
if (isPlayer(param)) then
local monsters =
{"angry water elemental",
"ophion slave",
"hydraphon",
"hydrilica",
"blood crab",
"mature blood crab",
"giant squid",
"ophion",
"megladon",
"immature sharkeater",
"the lurker",
"aquafilus",
"sharkeater"}
local monster1 = getPlayerStorageValue(cid, monsters[1])
local monster2 = getPlayerStorageValue(cid, monsters[2])
local monster3 = getPlayerStorageValue(cid, monsters[3])
local monster4 = getPlayerStorageValue(cid, monsters[4])
local monster5 = getPlayerStorageValue(cid, monsters[5])
local monster6 = getPlayerStorageValue(cid, monsters[6])
local monster7 = getPlayerStorageValue(cid, monsters[7])
local monster8 = getPlayerStorageValue(cid, monsters[8])
local monster9 = getPlayerStorageValue(cid, monsters[9])
local monster10 = getPlayerStorageValue(cid, monsters[10])
local monster11 = getPlayerStorageValue(cid, monsters[11])
local monster12 = getPlayerStorageValue(cid, monsters[12])
local monster13 = getPlayerStorageValue(cid, monsters[13])
doShowTextDialog(cid, 1950, text)
local text = "[FISHING]: /n Angry Water Elemental: " .. monster1 .. "/n Ophion Slave: " .. monster2 .. "/n Hydraphon: " .. monster3 .."/n Hydrilica: " .. monster4 .."/n Blood Crab: " .. monster5 .."/n Mature Blood Crab: " .. monster6 .."/n Giant Squid: " .. monster7 .."/n Ophion: " .. monster8 .."/n Megladon: " .. monster9 .."/n Immature Sharkeater: " .. monster10 .."/n The Lurker: " .. monster11 .."/n Aquafilus: " .. monster12 .."/n Sharkeater: " .. monster13 ..""
else
doShowTextDialog(cid, 1950, text)
end
end
Last edited: