• Sign up for September Mapping Competition! The prize includes Otland Premium time.
  • 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 [Fun Script] Dance!!!

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,293
Best answers
0
Reaction score
14
[18/06/2009 19:32:29] Lua Script Error: [TalkAction Interface]
[18/06/2009 19:32:29] data/talkactions/scripts/dancing.lua:eek:nSay

[18/06/2009 19:32:30] data/talkactions/scripts/dancing.lua:43: attempt to get length of field '?' (a nil value)
[18/06/2009 19:32:30] stack traceback:
[18/06/2009 19:32:30] data/talkactions/scripts/dancing.lua:43: in function <data/talkactions/scripts/dancing.lua:39>
 
OP
Azi

Azi

Banned User
Joined
Aug 12, 2007
Messages
1,167
Best answers
0
Reaction score
52
Location
Włocławek
FIXED ALL!

#up
Im post new version without test, and this error is alocated - now no error!

#Chipsen
In Now posted version this bug is eliminated!
Now this command can be used at 999999999999 and more players in one time!

NOW FULLY TESTED!
 

HeberPcL

[PowerOT.com.br]
Joined
Aug 21, 2007
Messages
1,287
Best answers
0
Reaction score
42
Location
Brazil
PHP:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/dancing.lua:onSay

data/talkactions/scripts/dancing.lua:48: attempt to index global 'events' (a nil
 value)
stack traceback:
        data/talkactions/scripts/dancing.lua:48: in function <data/talkactions/s
cripts/dancing.lua:44>

0.3.4PL2
 
Last edited:

Qwe

Banned User
Joined
May 19, 2009
Messages
122
Best answers
0
Reaction score
8
Location
$user->getLocation();
I see, this script is very easy to add modifications!
I show you, how to add here it!
I make 1 mod to magic effets in dance!

Before:
PHP:
function dancer(tab)
    local dirs = {[0] = {1,3},[1] = {0,2},[2] = {1,3},[3] = {0,2}}
    local look = dirs[getCreatureLookDirection(tab[1])]
    doCreatureSetLookDir(tab[1], look[math.random(1,2)])
    tab[2].dancer = addEvent(dancer,conf.danceSpeed, {tab[1], tab[2]})
end
Add:
PHP:
function effectSender(tab)
    local effect = math.random(conf.effects[1], conf.effects[2]}
	doSendMagicEffect(getCreaturePosition(tab[1]), effect)	
	tab[2].effectSender = addEvent(effectSender,conf.effectSpeed, {tab[1], tab[2]})
end
Before:
PHP:
conf.danceTexts = {"GO GO DANCE!", "DANCE NOW!", "DANCE IS FUNY!"}
add:
PHP:
conf.effects = {1,33}
conf.effectSpeed = 2000
before:
PHP:
dancer({cid, events[pid]})
add:
PHP:
effectSender({cid, events[pid]})
and before:
PHP:
stopEvent(events[pid].dancer)
add:
PHP:
stopEvent(events[pid].effectSender)
and successfuly added!
 
OP
Azi

Azi

Banned User
Joined
Aug 12, 2007
Messages
1,167
Best answers
0
Reaction score
52
Location
Włocławek
#up
thanks for example how do it for forum members! : )
rep++!
 

spongebob123

New Member
Joined
Nov 30, 2008
Messages
18
Best answers
0
Reaction score
0
I found a very evil bug :(

When u say !start dance and then logout then ui have increible buggs in u ots console :(

PLEASE FIX IT
 
OP
Azi

Azi

Banned User
Joined
Aug 12, 2007
Messages
1,167
Best answers
0
Reaction score
52
Location
Włocławek
#UP
fixed, thanks for report, rep++!
 
Last edited:
OP
Azi

Azi

Banned User
Joined
Aug 12, 2007
Messages
1,167
Best answers
0
Reaction score
52
Location
Włocławek
#up
Ok, when i have some time (now i must go out from house) i fix it
 

Fragdonut

Banned User
Joined
Jul 27, 2009
Messages
2,606
Best answers
0
Reaction score
0
Location
HDUXZZZ13387
It's nice but needs imrpovements like gone when walkin' or on a special tile only ;)
 

dianagirl

Member
Joined
Jul 28, 2009
Messages
429
Best answers
0
Reaction score
11
Location
Germany
eey..
what i must write by

Data/lib/data??


there are just staing

events = {}
??
 
Top