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

Lua [almost fixxed]errors loading server lua +xml's

spinna

New Member
Joined
Apr 6, 2009
Messages
52
Reaction score
3
Location
Oklahoma
:thumbup:
EDITED- 9-23-2010 - All times are GMT +1. The time now is 05:07.

thank you for looking, ive spent many hours on this server/files.. probably a fixxed version somewhere lol

i copy pasted the start up dos screen:

i think i need direction for the last couple errors

Code:
The Forgotten Server, version 0.3.6_SVN (Crying Damson)
Compiled with GNU C++ version 3.4.5 (mingw special) at Dec 19 2009, 09:10:06.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornhol
ijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... outdated, please consider updating!
> Current version information - version: 0.3.6_SVN, patch: 0, build: 0, timestam
p: 0.
> Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp:
 1260652199.
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection
>> Running Database Manager
> No tables were optimized.
>> Loading items
>> Loading groups
>> Loading vocations
>> Loading script systems
>> Loading chat channels
>> Loading outfits
>> Loading experience stages
>> Loading monsters
>> Loading mods...
> Loading buypremium_command.xml... done.
> Loading changender_command.xml... done.
> Loading custommonsters.xml... done.
> Loading customspells.xml... done.
> Loading firstitems.xml... done.
> Loading guildWarsystem.xml... done.
> Loading highscorebook.xml... done.
> Loading Inquisition.xml... done.
> Loading phoenix magic shield.xml... done.
> 9 mods were loaded.
>> Loading map and spawns...
> Map size: 38000x38000.
> Map descriptions:
"Saved with Remere's Map Editor 2.1"
"Credits to FrankFarmer on Otland"
> Map loading time: 51.547 seconds.
> Data parsing time: 14.312 seconds.
> Houses synchronization time: 0.5 seconds.
> Content unserialization time: 0.547 seconds.
>> Checking world type... PvP
>> Initializing game state modules and registering services...
[b][Warning - Monster::Monster] Unknown event name - bluelegs[/b]
> ip blah blah
>> All modules were loaded, server is starting up...
>> project-society server Online!



ERROR AFTER BEING ONLINE A WHILE
Code:
mysql_real_query(): SELECT `id` FROM `guilds` WHERE `in_war_with` > 0 - MYSQL ER
ROR: Unknown column 'in_war_with' in 'where clause' (1054)

[Error - GlobalEvent Interface]
buffer:onThink
Description:
data/lib/database.lua:60: [Result:getDataInt] Result not set!
stack traceback:
        [C]: in function 'error'
        data/lib/database.lua:60: in function 'getDataInt'
        data/lib/050-function.lua:945: in function 'getGuildsWithWar'
        [string "loadBuffer"]:3: in function <[string "loadBuffer"]:2>
[Error - GlobalEvents::think] Couldn't execute event: wars
Also geisor problem..

anyone can connect to the 8.54server using the ~~.servegame.com and play
i can view the webpage <geisor> at 192.168~ and local host or the laptop downstairs or 2 other PC's and make accounts etc - but you cannot access from outside the house @ ~.servegame.com or regular IP as a website.
it says 3306 is open on several port checkers, i tried to get 80 but says its blocked, is this port for geisor? could this be the problem? i opened/forward/switched this port just like the rest of them...
EVERY thing pretty much works but that.. people cannot create acct cause they cant access the page lol


Thanks for looking
 
Last edited:
well. your problem is that..
Table 'project-society.z_ots_comunication' doesn't exist

and

i need help adding accounts without act manager
use a website.

i recomend you to use Modern A.A.C..

post data/monster
/Bosses/morik the gladiator.xml

and the file 'sell/runes.lua' does not exist,
 
ok.. on my own i managed to get geisor to work after having to take several steps back<made mistakes>.. lol WOW
the same errors with lua does not exhist and the morik error are there but the repeating one is gone because of geisor adding the needed z_com~ thing

now im down to this:

anyone can connect to the server using the~.servegame.com and play
i can view the webpage <geisor> at 192.168~ and make accounts etc - but you cannot access from ~.servegame.com as a website
EVERY thing pretty much works but that.. people cannot create acct cause they cant access the page lol

i edited begining post removing the erros fixed
 
Last edited:
=bogart;1010296]post data/monster
/Bosses/morik the gladiator.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Morik the Gladiator" nameDescription="a morik the gladiator" race="blood" experience="160" speed="215" manacost="420">
	<health now="1235" max="1235"/>
	<look type="131" head="57" body="57" legs="57" feet="57" corpse="6080"/>
	<targetchange interval="2000" chance="0"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="1"/>
		<flag convinceable="1"/>
		<flag pushable="1"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="1"/>
		<flag runonhealth="10"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="46" attack="36" min="-30" max="-215"/>
	</attacks>
		<attack name="physical" interval="3000" chance="15" range="7" radius="3" target="0" min="-30" max="-115">
			<attribute key="areaEffect" value="blackspark"/>
		</attack>
	<defenses armor="9" defense="18">
		<defense name="speed" interval="1000" chance="6" speedchange="200" duration="2000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element holyPercent="10"/>
		<element physicalPercent="-12"/>
		<element deathPercent="-5"/>
	</elements>
	<voices interval="5000" chance="10">
		<voice sentence="An enemy!"/>
		<voice sentence="Gimme your money!"/>
	</voices>
  <summons maxSummons="2">
    <summon name="gladiator" speed="2000" chance="12"/>
  </summons>
	<loot>
		<item id="2148" countmax="30" chance="16750"/><!-- gold coin -->
		<item id="2666" countmax="2" chance="20000"/><!-- meat -->
		<item id="2649" chance="27500"/><!-- leather legs -->
		<item id="2110" chance="2650"/><!-- doll -->
		<item id="2465" chance="4000"/><!-- brass armor -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
				<item id="2509" chance="2650"/><!-- steel shield -->	
				<item id="2386" chance="23750"/><!-- axe -->
				<item id="2458" chance="2650"/><!-- chain helmet -->	
				<item id="2511" chance="17000"/><!-- brass shield -->
				<item id="2459" chance="250"/><!-- iron elhmet -->		
				<item id="2391" chance="100"/><!-- war hammer -->
			</inside>
		</item>
	</loot>
</monster>



and the file 'sell/runes.lua' does not exist

\server\data\npc\scripts\Sell...runes.lua is there, i am looking at it ;/
 
Last edited:
well, i did that a couple times.. is there a more permanent way to fix that? or is there somthing i did wrong, maybe it came back after a computer restart or somthing.

and anyidea on the gladiator xml?
 
For [Warning - NpcScript::NpcScript] Cannot load script: sell/runes.lua
cannot open sell/runes.lua: No such file or directory

Replace runes.lua with this.

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

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'spellbook of enlightenment'}, 8900, 6000, 'spellbook of enlightenment')
shopModule:addBuyableItem({'spellbook of warding'}, 8901, 10000, 'spellbook of warding')
shopModule:addBuyableItem({'spellbook of mind control'}, 8902, 20000, 'spellbook of mind control')
shopModule:addBuyableItem({'spellbook of lost souls'}, 8903, 200000, 'spellbook of lost souls')
shopModule:addBuyableItem({'spellbook of prophercies'}, 8904, 1000000, 'spellbook of prophercies')
shopModule:addBuyableItem({'spellbook of dark mysteries'}, 8918, 2000000, 'spellbook of dark mysteries')

shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion')
shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion')
shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion')
shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion')
shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion')
shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion')
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion')
shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion')

shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask')
shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask')
shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask')

shopModule:addBuyableItem({'blank rune'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItem({'intense healing'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'UH 100x'}, 2273, 17000, 100, 'UH 100x')
shopModule:addBuyableItem({'magic wall'}, 2293, 350, 3, 'magic wall rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 45, 3, 'destroy field rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 10, 'light magic missile rune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 120, 10, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball'}, 2304, 180, 4, 'great fireball rune')
shopModule:addBuyableItem({'explosion'}, 2313, 250, 6, 'explosion rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 350, 3, 'sudden death rune')
shopModule:addBuyableItem({'SD 100x'}, 2268, 12000, 100, 'SD 100x')
shopModule:addBuyableItem({'paralyze'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItem({'animate dead'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune')
shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 3, 'desintegreate rune')

shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 100, 'wand of vortex')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 500, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 2000, 'wand of decay')
shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 3000, 'wand of draconia')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 3000, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 5000, 'wand of inferno')
shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 8000, 'wand of starstorm')
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 10000, 'wand of voodoo')

shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 100, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 2000, 'necrotic rod')
shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 5000, 'northwind rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 3000, 'terra rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 6000, 'hailstorm rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 8000, 'springsprout rod')
shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 10000, 'underworld rod')

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182}
if(msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand')) then
if(isSorcerer(cid) or isDruid(cid)) then
if(getPlayerStorageValue(cid, 30002) == -1) then
selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid)
talkState[talkUser] = 1
else
selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid)
end
else
selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid)
end
elseif(msgcontains(msg, 'yes')) then
if(talkState[talkUser] == 1) then
doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1)
selfSay('Here you are young adept, take care yourself.', cid)
setPlayerStorageValue(cid, 30002, 1)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
selfSay('Ok then.', cid)
talkState[talkUser] = 0
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
For [Warning - NpcScript::NpcScript] Cannot load script: sell/runes.lua
cannot open sell/runes.lua: No such file or directory

Replace runes.lua with this.

how would he replace runes.lue if there is not such file or directory.
 
WOW what happened here lol i left this on a while and now this happens

Code:
mysql_real_query(): SELECT `id` FROM `guilds` WHERE `in_war_with` > 0 - MYSQL ER
ROR: Unknown column 'in_war_with' in 'where clause' (1054)

[Error - GlobalEvent Interface]
buffer:onThink
Description:
data/lib/database.lua:60: [Result:getDataInt] Result not set!
stack traceback:
        [C]: in function 'error'
        data/lib/database.lua:60: in function 'getDataInt'
        data/lib/050-function.lua:945: in function 'getGuildsWithWar'
        [string "loadBuffer"]:3: in function <[string "loadBuffer"]:2>
[Error - GlobalEvents::think] Couldn't execute event: wars
 
Last edited:
bogart, didnt you tell me to post the gladiator xml?, did you see it? lol

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Morik the Gladiator" nameDescription="a morik the gladiator" race="blood" experience="160" speed="215" manacost="420">
<health now="1235" max="1235"/>
<look type="131" head="57" body="57" legs="57" feet="57" corpse="6080"/>
<targetchange interval="2000" chance="0"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag staticattack="90"/>
<flag targetdistance="1"/>
<flag runonhealth="10"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-30" max="-215"/>
</attacks>
<attack name="physical" interval="3000" chance="15" range="7" radius="3" target="0" min="-30" max="-115">
<attribute key="areaEffect" value="blackspark"/>
</attack>
<defenses armor="9" defense="18">
<defense name="speed" interval="1000" chance="6" speedchange="200" duration="2000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element holyPercent="10"/>
<element physicalPercent="-12"/>
<element deathPercent="-5"/>
</elements>
<voices interval="5000" chance="10">
<voice sentence="An enemy!"/>
<voice sentence="Gimme your money!"/>
</voices>
<summons maxSummons="2">
<summon name="gladiator" speed="2000" chance="12"/>
</summons>
<loot>
<item id="2148" countmax="30" chance="16750"/><!-- gold coin -->
<item id="2666" countmax="2" chance="20000"/><!-- meat -->
<item id="2649" chance="27500"/><!-- leather legs -->
<item id="2110" chance="2650"/><!-- doll -->
<item id="2465" chance="4000"/><!-- brass armor -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="2509" chance="2650"/><!-- steel shield -->
<item id="2386" chance="23750"/><!-- axe -->
<item id="2458" chance="2650"/><!-- chain helmet -->
<item id="2511" chance="17000"/><!-- brass shield -->
<item id="2459" chance="250"/><!-- iron elhmet -->
<item id="2391" chance="100"/><!-- war hammer -->
</inside>
</item>
</loot>
</monster>
 
is that a fixed xml then? or you showing me you saw it lol, eitherway i was going to ask how you ge that handy scroll box for the pasting
 
Code:
 Replace runes.lua with this.


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

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 shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'spellbook of enlightenment'}, 8900, 6000, 'spellbook of enlightenment')
shopModule:addBuyableItem({'spellbook of warding'}, 8901, 10000, 'spellbook of warding')
shopModule:addBuyableItem({'spellbook of mind control'}, 8902, 20000, 'spellbook of mind control')
shopModule:addBuyableItem({'spellbook of lost souls'}, 8903, 200000, 'spellbook of lost souls')
shopModule:addBuyableItem({'spellbook of prophercies'}, 8904, 1000000, 'spellbook of prophercies')
shopModule:addBuyableItem({'spellbook of dark mysteries'}, 8918, 2000000, 'spellbook of dark mysteries')

shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion')
shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion')
shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion')
shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion')
shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion')
shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion')
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion')
shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion')

shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask')
shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask')
shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask')

shopModule:addBuyableItem({'blank rune'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItem({'intense healing'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'UH 100x'}, 2273, 17000, 100, 'UH 100x')
shopModule:addBuyableItem({'magic wall'}, 2293, 350, 3, 'magic wall rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 45, 3, 'destroy field rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 10, 'light magic missile rune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 120, 10, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball'}, 2304, 180, 4, 'great fireball rune')
shopModule:addBuyableItem({'explosion'}, 2313, 250, 6, 'explosion rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 350, 3, 'sudden death rune')
shopModule:addBuyableItem({'SD 100x'}, 2268, 12000, 100, 'SD 100x')
shopModule:addBuyableItem({'paralyze'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItem({'animate dead'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune')
shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 3, 'desintegreate rune')

shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 100, 'wand of vortex')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 500, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 2000, 'wand of decay')
shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 3000, 'wand of draconia')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 3000, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 5000, 'wand of inferno')
shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 8000, 'wand of starstorm')
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 10000, 'wand of voodoo')

shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 100, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 2000, 'necrotic rod')
shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 5000, 'northwind rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 3000, 'terra rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 6000, 'hailstorm rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 8000, 'springsprout rod')
shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 10000, 'underworld rod')

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182}
if(msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand')) then
if(isSorcerer(cid) or isDruid(cid)) then
if(getPlayerStorageValue(cid, 30002) == -1) then
selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid)
talkState[talkUser] = 1
else
selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid)
end
else
selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid)
end
elseif(msgcontains(msg, 'yes')) then
if(talkState[talkUser] == 1) then
doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1)
selfSay('Here you are young adept, take care yourself.', cid)
setPlayerStorageValue(cid, 30002, 1)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
selfSay('Ok then.', cid)
talkState[talkUser] = 0
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())


Didnt work. and a never ending error spam thanks lol
 
Code:
<attribute key="areaEffect" value="blackspark"/>
TO
<attribute key="areaEffect" value="mortarea"/>
change this and test the monster

and copy the exact location of the runes.lua file and post it here or better make a screenshot of this.
Code:
\server\data\npc\scripts\Sell\runes.lua is there, i am looking at it ;/
maby u put in npc Runes.lua and the file name is rune.lua so need the screenshot

Code:
Warning - Monster::Monster] Unknown event name - inquisitionPortals
[Warning - Monster::Monster] Unknown event name - bluelegs
this error meens that there is no inquisitionPortals and bluelegs events in login.lua so remove that from the monsters.
bluelegs > is that boss
Inq bosses = inquisitionPortals
Solution is add the event or just remove it from the monsters.
 
Last edited:
maby u put in npc Runes.lua and the file name is rune.lua so need the screenshot
UO0076.jpg


Code:
[Error - LuaScriptInterface::loadFile] cannot open sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: sell/runes.lua
cannot open sell/runes.lua: No such file or directory
 
Back
Top