• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Addons & Outfits [0.3+]

Status
Not open for further replies.

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Solutions
2
Reaction score
115
Outfits [0.3.6pl1]

Closed
 
Last edited:
Sure, lets make scripts 10 miles long.

Why dont you just use one table for every addon?

e.g.:
LUA:
local addons = {
    ["citizen"] = {
        items = {
            5431 = 3, 5312 = 2, 5124 = 6
        },
        outfits = {
            male = 130, female = 136
        }
    }
}
 
Did you test it? Cuz im not sure it will work like that:
LUA:
doPlayerAddOutfit(cid, outfits[param].female)
What it mean is:
LUA:
doPlayerAddOutfit(cid, doPlayerAddOutfit(cid, 129, 3))

Maybe if you set:
LUA:
["citizen"] = { maleType = 128, addonType = 3, femaleType = 136, item = XXXX },

And then
LUA:
doPlayerAddOutfit(cid, outfits[param].maleType, outfits[param].addonType)
 
Code:
[10/08/2009 16:55:28] luaDoPlayerAddOutfit(). Player not found
[10/08/2009 16:58:50] Lua Script Error: [TalkAction Interface] 
[10/08/2009 16:58:50] data/talkactions/scripts/addons.lua:onSay

[10/08/2009 16:58:50] data/talkactions/scripts/addons.lua:16: attempt to index field '?' (a nil value)
[10/08/2009 16:58:50] stack traceback:
[10/08/2009 16:58:50] 	data/talkactions/scripts/addons.lua:16: in function <data/talkactions/scripts/addons.lua:8>
It is what i say..
 
Thanks can u make a example one of how to buy like say !Demonaddon and adds the Demon look to your outfit? maybe
 
But you didn't convert it.

Should be like:

!addon Citizen

00:00 Sorry, you neeed 100 minotaur leathers to get this addon.

also

!addon Citizen
00:00 You have exchanged your adddon doll for the citizen addon.
 
I could do that, but it would take some time...
I don't know if I can do it ATM.
 
Status
Not open for further replies.
Back
Top