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

[8.7] The Forgotten Server v0.2.10 (Mystic Spirit)

Status
Not open for further replies.
an simple question about rings and amulets charges, then monster drop a ring or amulet it allways having 1 charge how i could add in monster loot list amulet with charges?

Code:
 <item id="2198" chance="1250" /><!-- Elven amulet -->
what i should add here?

bump.
 
i'm experimenting some crashes and i almost fixed all erros in console but:

data/items/items.xml:2: element items: Schemas validity error : Element 'items': Character content other than whitespace is not allowed because the content type is 'element-only'.
 
Charges


add these lines to monsters.cpp
Code:
		if(lootBlock.id == 2197 || lootBlock.id == 10219 || lootBlock.id == 10221 || lootBlock.id == 10220) 
			tmpItem->setCharges(5);
		else if(lootBlock.id == 2164) 
			tmpItem->setCharges(20);
		else if(lootBlock.id == 2198)
			tmpItem->setCharges(50);
		else if(lootBlock.id == 2199) 
			tmpItem->setCharges(150);
		else if(lootBlock.id == 2201 || lootBlock.id == 2172 || lootBlock.id == 2170 || lootBlock.id == 7887 || lootBlock.id == 7888 || lootBlock.id == 7889 || lootBlock.id == 7890 || lootBlock.id == 2161) 
			tmpItem->setCharges(200);
		else if(lootBlock.id == 2200) 
			tmpItem->setCharges(250);

after line
Code:
		if(lootBlock.text != "")
			tmpItem->setText(lootBlock.text);

and the creatures will drop all amulets and might ring with the right charges
 
I cant get this server to run online, but others work fine. Could someone help me? :)
 
Memory Allocation Failed bla bla compile 64 bit bla bla decrease size of map -.- i already decreased from 92mb to 45mb T.T and still crashing... then wtf?
what's wrong?
is my map? my ram?
happening since LuaJit thing came at 0.2.8(i was using win xp pro 32 bit)... im using 0.2.10(windows 7 Ultimate) and i just can't figure it out
3gb of RAM is not enough?
i'm kinda desperated and i'm above to leave the scene of OT's for this =S
 
add these lines to monsters.cpp
Code:
		if(lootBlock.id == 2197 || lootBlock.id == 10219 || lootBlock.id == 10221 || lootBlock.id == 10220) 
			tmpItem->setCharges(5);
		else if(lootBlock.id == 2164) 
			tmpItem->setCharges(20);
		else if(lootBlock.id == 2198)
			tmpItem->setCharges(50);
		else if(lootBlock.id == 2199) 
			tmpItem->setCharges(150);
		else if(lootBlock.id == 2201 || lootBlock.id == 2172 || lootBlock.id == 2170 || lootBlock.id == 7887 || lootBlock.id == 7888 || lootBlock.id == 7889 || lootBlock.id == 7890 || lootBlock.id == 2161) 
			tmpItem->setCharges(200);
		else if(lootBlock.id == 2200) 
			tmpItem->setCharges(250);

after line
Code:
		if(lootBlock.text != "")
			tmpItem->setText(lootBlock.text);

and the creatures will drop all amulets and might ring with the right charges

subtype="charges" on monster loot is the proper way to get it working.
 
Code:
[27/03/2011 13:46:35] Lua Script Error: [Npc interface] 
[27/03/2011 13:46:35] data/npc/scripts/default.lua:onThink
[27/03/2011 13:46:35] attempt to call a nil value
[27/03/2011 13:46:35] stack traceback:
[27/03/2011 13:46:35] 	[C]: ?

[27/03/2011 13:46:35] Lua Script Error: [Npc interface] 
[27/03/2011 13:46:35] data/npc/scripts/default.lua:onThink
[27/03/2011 13:46:35] Stack size changed!
 
Pobrałem i przy włączaniu maszyny wyskakuje mi "nie mozna uruchomic, nie znaleziono LIBMYSQL.dll
 
CyrePanda


how do i fix this?
 
Status
Not open for further replies.
Back
Top