• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Scripter Needed!!

MoadElking

New Member
Joined
May 15, 2012
Messages
6
Reaction score
0
looking for a script for bot checking it says like that :Please Say outloud (3+2=) like if (1+1) you say outloud 2 if not answering for 1min getting jailed if worng answer give other 2 chances Fast please :)
Note:everytime a new shit not everytime 3+2 lol
 
Last edited:
LUA:
------put in a globalevent---------
local num1 = math.random(1, 100)
local num2 = math.random(1, 100)
local answer = num1+num2
doPlayerSetStorageValue(cid, storage, answer)
doSendPlayerTextMessage(cid, 1, "What is "..num1.." + "..num2.."?/nUse !answer ## to answer this question")
-------put in a talkaction for !answer-----
local answer = getPlayerStoragValue(cid, storage)
if answer == -1 then return doCreatureSay(cid, "I am not being tested.", 1) end
if param == answer then
  doCreatureSay(cid, "Correct!", 1)
  doPlayerSetStorageValue(cid, storage, -1)
end

Close enough, if you can't finish it yourself with that, then you shouldn't be running a server :P
 
LUA:
------put in a globalevent---------
local num1 = math.random(1, 100)
local num2 = math.random(1, 100)
local answer = num1+num2
doPlayerSetStorageValue(cid, storage, answer)
doSendPlayerTextMessage(cid, 1, "What is "..num1.." + "..num2.."?/nUse !answer ## to answer this question")
-------put in a talkaction for !answer-----
local answer = getPlayerStoragValue(cid, storage)
if answer == -1 then return doCreatureSay(cid, "I am not being tested.", 1) end
if param == answer then
  doCreatureSay(cid, "Correct!", 1)
  doPlayerSetStorageValue(cid, storage, -1)
end

Close enough, if you can't finish it yourself with that, then you shouldn't be running a server :P

the first code must be on creaturescript
it must be function onLogin not a global event

and you didn't mention a talkaction( i ain't sure if it is right to write like this)


LUA:
getPlayerStorageValue(cid, ????, 1)

you didn't mention the storage

correct me if i am wrong

oops i didn't see Close enough !! Sry :D

Ty
 
Last edited:


the first code must be on creaturescript
it must be function onLogin not a global event

and you didn't mention a talkaction( i ain't sure if it is right to write like this)


LUA:
getPlayerStorageValue(cid, ????, 1)

you didn't mention the storage

correct me if i am wrong

oops i didn't see Close enough !! Sry :D

Ty

You could do creaturescript OR globalevent, it is preference. (If you want I could script this at least 3 different ways)

I am not the type of person to just GIVE someone everything they need so they can remain a useless Hoster.
I gave him what he needed to start, if he wants he can do a little work, learn a little, and have a script that works.

Give a man a script, he'll come back asking for more scripts for his entire life.
Teach a man to script, he will learn to do things on his own and become a better Server Owner.
 
Back
Top