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

NPC [MEGA Release] Complete addon NPC, newest NPC system, Yalaharian addon supported!

18:27 Varkhal: Did you bring me 50 -1, 50 -1, 50 -1, 50 -1, 50 -1, 50 -1, 100 -1 for first assassin addon?

[02/12/2008 18:27:55] Lua Script Error: [Npc interface]
[02/12/2008 18:27:55] data/npc/scripts/addons.lua:eek:nCreatureSay

o_O
Wtf
I use Tfs 0.3
 
@up
0.3? It's working fine for me, and I'm using 0.3..
 
Hello again!

1. Refreshing topic.
2. Added Yalaharian addon support.
- before using, read notes at the top of first post.
3. I wouldn't mind reputation points from you :)
4. It IS working! Tested on TFS0.3a4, TFS0.3b1, TFS0.3b1pl1, TFS0.3b2.
5. It WILL work on 0.2 (dunno which exactly, but some of the newest, i'm not using it actually :<) just change getItemNameById to getItemName :D

Regards,
Hermes
 
I know this :D, I'm using it in my OT.

@topic
Little fix, some words misspelling.
 
Nice job, I will use it, but you forgot 'Demonhunter' there:
keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can give you citizen, hunter, knight, mage, nobleman, summoner, warrior, barbarian, druid, wizard, oriental, pirate, assassin, beggar, shaman, norseman, nighmare, jester, yalaharian and brotherhood addons.'})
 
Sry, had sum problems with mobile phone browser, and i fu***d up my post >.>, I will rewrite it tomorrow, or maybe some1 have opened it and no refreshed so please send it to me ;s.

I have posted NPC. Have fun!
 
I have rewritten first post. No fixes in NPC, cause I think it's now totally bugfree :D
 
Humm... again: it actually works in 0.2 xD and works very good =) you only forgot the demon hunter in the help npc but dont worry, it is ok! =)

oh and the norseman is so... easy xD
 
Then send e-mail to CipSoft :D it's not depending on me. I'm just releasing this as it is, just to show Otland community that Hermes rox :D

Regards,
Hermes

PS. And I have fixed "demonhunter" to list of addons yesterday ;o
 
Then send e-mail to CipSoft :D it's not depending on me. I'm just releasing this as it is, just to show Otland community that Hermes rox :D

Regards,
Hermes

PS. And I have fixed "demonhunter" to list of addons yesterday ;o

i mean in your script xD! i dont care cip xD

you added it i see but ... i use the first version sorry xD
 
Hello nice code ^^

there is a small problem

knight and mage uses the same storages, i think you didnt noticed it when you made it (=.


To te people that use TFS 0.3 and the addons arent saved i ve done a litle patch

create a Lua file in the same folder of the EXE.

outfits.lua

PHP:
Outfits = {
    -- citizen (done)
    [10001] = {Outs={136, 128}, addon=1},
    [10002] = {Outs={136, 128}, addon=2},
    -- hunter (done)
    [10003] = {Outs={137, 129}, addon=1},
    [10004] = {Outs={137, 129}, addon=2},
    -- knight (done)
    [10005] = {Outs={139, 131}, addon=1},
    [10006] = {Outs={139, 131}, addon=2},
    -- mage (done)
    [10007] = {Outs={138, 130}, addon=1},
    [10008] = {Outs={138, 130}, addon=2},
    -- summoner (done)
    [10009] = {Outs={141, 133}, addon=1},
    [10010] = {Outs={141, 133}, addon=2},
    -- barbarian (done)
    [10011] = {Outs={147, 143}, addon=1},
    [10012] = {Outs={147, 143}, addon=2},
    -- druid (done)
    [10013] = {Outs={148, 144}, addon=1},
    [10014] = {Outs={148, 144}, addon=2},
    -- nobleman (done)
    [10015] = {Outs={140, 132}, addon=1},
    [10016] = {Outs={140, 132}, addon=2},
    -- oriental (done)
    [10017] = {Outs={150, 146}, addon=1},
    [10018] = {Outs={150, 146}, addon=2},
    -- warrior (done)
    [10019] = {Outs={142, 134}, addon=1},
    [10020] = {Outs={142, 134}, addon=2},
    -- wizard (done)
    [10021] = {Outs={149, 145}, addon=1},
    [10022] = {Outs={149, 145}, addon=2},
    -- assassin (done)
    [10023] = {Outs={156, 152}, addon=1},
    [10024] = {Outs={156, 152}, addon=2},
    -- beggar (done)
    [10025] = {Outs={157, 153}, addon=1},
    [10026] = {Outs={157, 153}, addon=2},
    -- pirate (done)
    [10027] = {Outs={155, 151}, addon=1},
    [10028] = {Outs={155, 151}, addon=2},
    -- shaman (done)
    [10029] = {Outs={158, 154}, addon=1},
    [10030] = {Outs={158, 154}, addon=2},
    -- norseman (done)
    [10031] = {Outs={252, 251}, addon=1},
    [10032] = {Outs={252, 251}, addon=2},
    -- jester (done)(custom)
    [10033] = {Outs={270, 273}, addon=1},
    [10034] = {Outs={270, 273}, addon=2},    
    -- demonhunter (done)(custom)
    [10035] = {Outs={288, 289}, addon=1},
    [10036] = {Outs={288, 289}, addon=2},
    -- nightmare (done)(custom)
    [10037] = {Outs={269, 268}, addon=1},
    [10038] = {Outs={269, 268}, addon=2},
    -- brotherhood (done)(custom)
    [10039] = {Outs={136, 278}, addon=1},
    [10040] = {Outs={136, 278}, addon=2}
    }
add to login.lua

PHP:
dofile("./outfits.lua")
    for o = 10001, 10040 do
        if getPlayerStorageValue(cid, o) == 1 then
            for x = 1, 2 do
                doPlayerAddOutfit(cid, Outfits[o].Outs[x], Outfits[o].addon)
            end
        end
    end
 
20:02 Leduzin [57]: first yalaharian addon
20:02 Varkhal: Did you bring me 1 vampiric crest for first yalaharian addon?
20:02 Leduzin [57]: yes
20:02 Varkhal: Here you are.

---------------

20:03 Leduzin [57]: second yalaharian addon
20:03 Varkhal: You already have this addon!

Wrong ERROR!! i only got the first addon :(

but i know whats wrong please edit it in your script :)

-- yalaharian (done)(custom)
local outfit_node = keywordHandler:addKeyword({'first yalaharian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{9955,1}}, outfit_female = 324, outfit_male = 325, addon = 1, storageID = 10041})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second yalaharian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{9955,1}}, outfit_female = 324, outfit_male = 325, addon = 2, storageID = !!!!!!!-->10041<--!!!!!!})

change to 10042

btw thanks for the nice script :)
 
20:02 Leduzin [57]: first yalaharian addon
20:02 Varkhal: Did you bring me 1 vampiric crest for first yalaharian addon?
20:02 Leduzin [57]: yes
20:02 Varkhal: Here you are.

---------------

20:03 Leduzin [57]: second yalaharian addon
20:03 Varkhal: You already have this addon!

Wrong ERROR!! i only got the first addon :(

but i know whats wrong please edit it in your script :)



change to 10042

btw thanks for the nice script :)

in tibia cipsoft you can only use 1 (or not?)
 
Back
Top