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

MAP-NPC Issues TFS .2 (GOOD Explaination)

Saints Anathema

Old School Doleran
Joined
Feb 24, 2009
Messages
653
Reaction score
8
Location
BC,Canada
Hello, ive read the boards over and over, few posts saying just open up rameres editor and itll ask u to load the npcs from there.. all it did was corrupt my map.

I run TFS .2 with the standard roxorz map and im having many issues with the NPCS.

The only NPC i can find is the ADDONS NPC. Now im very new to hosting OT's, but ive made it this far, ive made it through port forwarding, mysql, databases...

Ill be damned if the NPCS stop me.


So through my post reading, i know you all want alot of information.



Question 1) does TFS have a npc.xml if so where? ive checked world/npc/monsters and even all the random places. So i thought hey what the hell lets download another TFS distro, this time it was cryingdamson the other tfs .3? theres no npc.xml that i can find in there as well.

Problem 1) on the roxorz map, at the depot theres a aol seller/tools/loot etc etc but for some reason the deco seller.xml is attached to the parcel.lua


heres an example of what it says isnt working

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Aol Seller" script="data/npc/scripts/aol.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="138" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="amulet of loss,2173,20000"/>
</parameters>
</npc>

and in the aol.lua


local CONST_ASSASSIN_STAR_COST = 45
local CONST_ASSASSIN_STAR_LEVEL = 80
local CONST_ASSASSIN_STAR_ITEMID = 7368

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)


function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local count = 1

function assassinStarCallback(cid, message, keywords, parameters)
if(cid ~= npcHandler.focus) then
return false
end
if(not(getPlayerStorageValue(cid,120001) == 1 and getPlayerStorageValue(cid,120002) == 1)) then
npcHandler:say('I only sell assassin stars to more experienced people.')
keywordHandler:reset()
elseif(getPlayerLevel(cid) < CONST_ASSASSIN_STAR_LEVEL) then
npcHandler:say('Your level is too low.')
keywordHandler:reset()
else
count = ShopModule:getCount(message)
npcHandler:say('I see that you are experienced enough. Do you want to buy ' .. count .. ' for ' .. count*CONST_ASSASSIN_STAR_COST .. ' gold coins?')
end
return true
end

function buyAssassinStarCallback(cid, message, keywords, parameters)
if(cid ~= npcHandler.focus) then
return false
end

if(doPlayerBuyItem(cid, CONST_ASSASSIN_STAR_ITEMID, count, count*CONST_ASSASSIN_STAR_COST) == LUA_NO_ERROR) then
npcHandler:say('Here you are.')
else
npcHandler:say('You cannot afford that.')
end
keywordHandler:reset()
return true
end

local node = keywordHandler:addKeyword({'assassin'}, assassinStarCallback)
node:addChildKeyword({'yes'}, buyAssassinStarCallback)
node:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, text = 'Then what do you want?', reset = true})

local keywordModule = KeywordModule:new()
npcHandler:addModule(keywordModule)

keywordModule:addKeyword({'aol'}, 'I sell AOL for 2k.')

npcHandler:addModule(FocusModule:new())


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Now ive tried reading up as much as i can and so far havent had any luck. The players on my ot need to have me hand make the runes. So i will be checking this thread on the hour (its currently 11:39 in the morning and i havent slept)


If you happen to be real smart and can explain how in TFS.2 i can fix the promotions for some reason they can pick knight/sorc/druid/pally but isnt there some way to get them a auto promo, or even have them all start as RP/MS/ED/EK?


If you want to contact me on msn to make this easier thatd be awesome to,

[email protected] (be sure to tell me your from OTland)
 
Last edited:
I'll take a look at the map and fix it up. I've got nothing better to do, hit me up on msn :P
 
Solution
Its easier if you use code tags, here is how you use it

[ code ] Hello [/ code]

WITHOUT SPACES

Then it will look like this

Code:
 Hello
 
Back
Top