• 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!

TalkAction The Numeric Lottery!

#up
thx, mistaked when i translate from pl to eng. - fixed! ; )
with letter you can add:
Code:
local itemname = "letter"
local letter = doPlayerAddItem(cid, getItemIdByName(itemname), 1)
doSetItemText([COLOR="Red"]uid[/COLOR], "You sent ticket for lotto!\n Your typed numbers: "..typ)

I Changed the UID to letter
and it works!
Man you are amazing ;D
REP You
=@@@
 
Good work but
Code:
[03/02/2009 20:04:48] Lua Script Error: [TalkAction Interface] 
[03/02/2009 20:04:48] data/talkactions/scripts/lotto/result.lua:onSay

[03/02/2009 20:04:48] data/lib/database.lua:55: [Result:getDataString]: Result not set!
[03/02/2009 20:04:48] stack traceback:
[03/02/2009 20:04:48] 	[C]: in function 'error'
[03/02/2009 20:04:48] 	data/lib/database.lua:55: in function 'getDataString'
[03/02/2009 20:04:48] 	data/talkactions/scripts/lotto/result.lua:8: in function <data/talkactions/scripts/lotto/result.lua:2>
[03/02/2009 20:06:18] Reloaded talk actions.
:D
 
Last edited:
#up
thx, mistaked when i translate from pl to eng. - fixed! ; )
with letter you can add:
Code:
local itemname = "letter"
local letter = doPlayerAddItem(cid, getItemIdByName(itemname), 1)
doSetItemText(uid, "You sent ticket for lotto!\n Your typed numbers: "..typ)
in ticked.lua
under:
Code:
doPlayerRemoveMoney(cid, config["cost"])

Changer:
doSetItemText(uid, "You sent ticket for lotto!\n Your typed numbers: "..typ)

To:
doSetItemText(letter, "You sent ticket for lotto!\n Your typed numbers: "..typ)

Function perfect in TFS 3b!
 
!result
return error
PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/loteria/result.lua:onSay

data/classes/database.lua:70: [Result:getDataString]: Result not set!
stack traceback:
        [C]: in function 'error'
        data/classes/database.lua:70: in function 'getDataString'
        data/talkactions/scripts/loteria/result.lua:7: in function <data
/talkactions/scripts/loteria/result.lua:1>

It would not be possible to add the amount the player won in the Depot in a city or backpack Player? Or if he would issue estivese offline?
 
Last edited:
#up
player say !result, and moneys added. you can modificate with bank storage value. ;)
 
!result
return error
PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/loteria/result.lua:onSay

data/classes/database.lua:70: [Result:getDataString]: Result not set!
stack traceback:
        [C]: in function 'error'
        data/classes/database.lua:70: in function 'getDataString'
        data/talkactions/scripts/loteria/result.lua:7: in function <data
/talkactions/scripts/loteria/result.lua:1>

It would not be possible to add the amount the player won in the Depot in a city or backpack Player? Or if he would issue estivese offline?

After the "result = db.storeQuery......" add this line:
Code:
if result:getID() ~= LUA_ERROR then
-- here is all other code :)
end

understand plx?
 
Colandus,
I wanted to create another table in sql to make a log of the Player / Money / Day award to put on the site. Could you help me?
 
Error in RC1. =z

PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/powerot/loteria/ticket.lua:onSay

data/talkactions/scripts/powerot/loteria/ticket.lua:16: attempt to compare numbe
r with nil
stack traceback:
        data/talkactions/scripts/powerot/loteria/ticket.lua:16: in function <dat
a/talkactions/scripts/powerot/loteria/ticket.lua:7>
 
mayby you say:
!ticket "1,2 [..]

use without " : )
only !ticket 1,2 [..]
 
Error in 0.3.4PL1
PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/ticket.lua:onSay

data/talkactions/scripts/ticket.lua:14: attempt to get length of
 local 'nbrs' (a nil value)
stack traceback:
        data/talkactions/scripts/ticket.lua:14: in function <dat
a/talkactions/scripts/ticket.lua:7>
 
Error:
PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/Lottery/ticket.lua:onSay

data/talkactions/scripts/Lottery/ticket.lua:14: attempt to get length of
 local 'nbrs' (a nil value)
stack traceback:
        data/talkactions/scripts/Lottery/ticket.lua:14: in function <dat
a/talkactions/scripts/Lottery/ticket.lua:7>

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/Lottery/result.lua:onSay

data/lib/database.lua:76: [Result:getDataString] Result not set!
stack traceback:
        [C]: in function 'error'
        data/lib/database.lua:76: in function 'getDataString'
        data/talkactions/scripts/Lottery/result.lua:7: in function <data
/talkactions/scripts/Lottery/result.lua:1>

Tested in 0.3.5 Public

How fix?
 
Back
Top