• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

money limit or what is it?

kingkong007

New Member
Joined
Apr 26, 2012
Messages
8
Reaction score
0
Hello, i got a problem and maybe someone of you had the same, or knows where to find it, i got no idea.

Yesterday i added a script to change crystal coins for gold nuggets and back.. [100cc-1gn] and it works fine so far..
I also added
Code:
"key="worth" value="1000000" />"
to gold nugget in items.xml and i can trade gold nuggets with npcs now, or use it for levers to buy backpacks of runes.
But when i got more than 2147 nuggets with me, the NPC change from "Money 2147000000" to "Money:-2146967296" and don't sell any items anymore.
But the Levers does. Problem there is that he sell you backpacks like this: "05:17 You have bought backpack of manarunes for 1000000 gold coins."
[20x 100runes] for nothing. You can buy endless backpacks then without to pay 1 gold coin.

I tryed it with Gold Ingots too [100gn=1gold ingot] but it is bugged too, so i removed it. When i used the lever for manarunes with 100 ingots in my backpack, i payed like 85 gold ingots for the first backpack instead of 1 nugget. :blink:

Someone maybe got an idea how to fix that bug?
Is there any limit for max. gp each player or something like that? If yes, can i remove it?

thanx

Edit: i got TFS 0.3.6
 
Last edited:
found 2 more bugs..

Stamina refiller don't work sometimes [or maybe just don't work in the temple] ?!

and the HP/MP of my addon bonus system don't load when you die and respawn in temple, so the people don't have full hp :huh:

plx help
 
aaah alright sorry

staminadoll.lua:

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cfg = {}
	cfg.refuel = 42 * 60 * 1000
	if(getPlayerStamina(cid) >= cfg.refuel) then
		doPlayerSendCancel(cid, "Your stamina is already full.")
	elseif(not isPremium(cid)) then
		doPlayerSendCancel(cid, "You must have a premium account.")
	else
		doPlayerSetStamina(cid, cfg.refuel)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
		doRemoveItem(item.uid)
	end
	return true
end


changegold.lua

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then
		doChangeTypeItem(item.uid, item.type - item.type)
		doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE)
	elseif item.itemid == ITEM_PLATINUM_COIN and item.type == ITEMCOUNT_MAX then
		doChangeTypeItem(item.uid, item.type - item.type)
		doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, 1)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL)
	elseif item.itemid == ITEM_CRYSTAL_COIN and item.type == ITEMCOUNT_MAX then
		doChangeTypeItem(item.uid, item.type - item.type)
		doPlayerAddItem(cid, ITEM_GOLD_NUGGET, 1)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_GREEN)

	elseif item.itemid == ITEM_PLATINUM_COIN and item.type < ITEMCOUNT_MAX then
		doChangeTypeItem(item.uid, item.type - 1)
		doPlayerAddItem(cid, ITEM_GOLD_COIN, ITEMCOUNT_MAX)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_YELLOW)
	elseif item.itemid == ITEM_CRYSTAL_COIN then
		doChangeTypeItem(item.uid, item.type - 1)
		doPlayerAddItem(cid, ITEM_PLATINUM_COIN, ITEMCOUNT_MAX)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE)
	elseif item.itemid == ITEM_GOLD_NUGGET then
		doChangeTypeItem(item.uid, item.type - 1)
		doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, ITEMCOUNT_MAX)
		doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_GREEN)
	else
		return FALSE
	end
	return TRUE
end

actions.xml:

Code:
<action itemid="11249" event="script" value="other/staminadoll.lua"/>
	<action itemid="2148" script="other/changegold.lua"/>
	<action itemid="2152" script="other/changegold.lua"/>
	<action itemid="2160" script="other/changegold.lua"/>
	<action itemid="2157" script="other/changegold.lua"/> <!-- Gold Nugget -->

lib/constant.lua:

Code:
ITEM_GOLD_COIN = 2148
ITEM_PLATINUM_COIN = 2152
ITEM_CRYSTAL_COIN = 2160
ITEM_GOLD_NUGGET = 2157

outfits.xml:

Code:
<?xml version="1.0"?>
<outfits>
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen">
        <attribute speed="50"/>
        <stats maxMana="1000"/>
            </list>
        <list gender="1" lookType="128" name="Citizen">
        <attribute speed="50"/>
        <stats maxMana="1000"/>
            </list>
    </outfit>
 
    <outfit id="2">
        <list gender="0" lookType="137" name="Hunter">
        <attribute speed="150"/>
        <skills dist="30"/>
        <stats maxHealth="4000"/>
		<skills shield="5"/>
        </list>
        <list gender="1" lookType="129" name="Hunter">
        <attribute speed="150"/>
        <skills dist="30"/>
        <stats maxHealth="4000"/>
		<skills shield="5"/>
        </list>
    </outfit>
 
    <outfit id="3">
        <list gender="0" lookType="138" name="Mage">
        <attribute speed="150"/>
        <stats magLevel="20"/>
        <stats maxMana="5000"/>
		<skills shield="5"/>
        </list>
        <list gender="1" lookType="130" name="Mage">
        <attribute speed="150"/>
        <stats magLevel="20"/>
        <stats maxMana="5000"/>
		<skills shield="5"/>
        </list>
    </outfit>
 
    <outfit id="4">
        <list gender="0" lookType="139" name="Knight">
        <skills shield="30"/>
        </list>
        <list gender="1" lookType="131" name="Knight">
        <skills shield="30"/>
        </list>
    </outfit>
 
    <outfit id="5" premium="yes">
        <list gender="0" lookType="140" name="Noblewoman">
        <stats maxHealth="1000"/>
        </list>
        <list gender="1" lookType="132" name="Nobleman">
        <stats maxHealth="1000"/>
        </list>
    </outfit>
 
    <outfit id="6" premium="yes">
        <list gender="0" lookType="141" name="Summoner">
        <stats magLevel="4"/>
        <stats maxMana="1000"/>
        </list>
        <list gender="1" lookType="133" name="Summoner">
        <stats magLevel="4"/>
        <stats maxMana="1000"/>
        </list>
    </outfit>
 
    <outfit id="7" premium="yes">
        <list gender="0" lookType="142" name="Warrior">
        <stats magLevel="1"/>
        <skills axe="15"/>
        <skills club="15"/>
        <skills sword="15"/>
        <skills shield="15"/>
        <stats maxHealth="3000"/>
        </list>
        <list gender="1" lookType="134" name="Warrior">
        <stats magLevel="1"/>
        <skills axe="15"/>
        <skills club="15"/>
        <skills sword="15"/>
        <skills shield="15"/>
        <stats maxHealth="3000"/>
        </list>
    </outfit>
 
    <outfit id="8" premium="yes">
        <list gender="0" lookType="147" name="Barbarian">
        <skills axe="10"/>
        <skills club="10"/>
        <skills sword="10"/>
        </list>
        <list gender="1" lookType="143" name="Barbarian">
        <skills axe="10"/>
        <skills club="10"/>
        <skills sword="10"/>
        </list>
    </outfit>
 
    <outfit id="9" premium="yes">
        <list gender="0" lookType="148" name="Druid">
        <stats magLevel="7"/>
        <stats maxMana="500"/>
        </list>
        <list gender="1" lookType="144" name="Druid">
        <stats magLevel="7"/>
        <stats maxMana="500"/>
        </list>
    </outfit>
 
    <outfit id="10" premium="yes">
        <list gender="0" lookType="149" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="300"/>
        </list>
        <list gender="1" lookType="145" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="300"/>
        </list>
    </outfit>
 
    <outfit id="11" premium="yes">
        <list gender="0" lookType="150" name="Oriental">
        <attribute speed="50"/>
        <stats maxHealth="300"/>
        <stats maxMana="200"/>
        <stats magLevel="2"/>
            </list>
        <list gender="1" lookType="146" name="Oriental">
        <attribute speed="50"/>
        <stats maxHealth="300"/>
        <stats maxMana="200"/>
        <stats magLevel="2"/>
            </list>
    </outfit>
 
    <outfit id="12" premium="yes">
        <list gender="0" lookType="155" name="Pirate">
        <stats maxHealth="100"/>
        <skills axe="10"/>
        <skills club="10"/>
        <skills sword="10"/>
        </list>
        <list gender="1" lookType="151" name="Pirate">
        <stats maxHealth="100"/>
        <skills axe="10"/>
        <skills club="10"/>
        <skills sword="10"/>
        </list>
    </outfit>
 
    <outfit id="13" premium="yes" >
        <list gender="0" lookType="156" name="Assassin">
        <attribute speed="50"/>
        <skills dist="8"/>
        <skills shielding="12"/>
            </list>
        <list gender="1" lookType="152" name="Assassin">
        <attribute speed="50"/>
        <skills dist="8"/>
        <skills shielding="12"/>
            </list>
    </outfit>
 
    <outfit id="14" premium="yes" >
        <list gender="0" lookType="157" name="Beggar">
        <stats magLevel="5"/>
        <stats maxHealth="1000"/>
        <attribute speed="50"/>
        </list>
        <list gender="1" lookType="153" name="Beggar">
        <stats magLevel="5"/>
        <stats maxHealth="1000"/>
        <attribute speed="50"/>
        </list>
    </outfit>
 
    <outfit id="15" premium="yes" >
        <list gender="0" lookType="158" name="Shaman">
        <stats magLevel="3"/>
        <attribute speed="500"/>
        <skills dist="5"/>
        </list>
        <list gender="1" lookType="154" name="Shaman">
        <stats magLevel="3"/>
        <attribute speed="500"/>
        <skills dist="5"/>
        </list>
    </outfit>
 
    <outfit id="16" premium="yes" >
        <list gender="0" lookType="252" name="Norsewoman">
        <stats maxHealth="300"/>
        </list>
        <list gender="1" lookType="251" name="Norseman">
        <stats maxHealth="300"/>
        </list>
    </outfit>
 
    <outfit id="17" premium="yes" >
        <list gender="0" lookType="269" name="Nightmare">
        <skills shielding="13"/>
        <stats maxMana="1000"/>
        </list>
        <list gender="1" lookType="268" name="Nightmare">
        <skills shielding="13"/>
        <stats maxMana="1000"/>
        </list>
    </outfit>
 
    <outfit id="18" premium="yes">
        <list gender="0" lookType="270" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="50"/>
        <stats maxHealth="700"/>
        <skills club="5"/>
        </list>
        <list gender="1" lookType="273" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="50"/>
        <stats maxHealth="700"/>
        <skills club="5"/>
        </list>
    </outfit>
 
    <outfit id="19" premium="yes">
        <list gender="0" lookType="279" name="Brotherhood">
        <skills shielding="13"/>
        <stats maxHealth="1200"/>
        </list>
        <list gender="1" lookType="278" name="Brotherhood">
        <skills shielding="13"/>
        <stats maxHealth="1200"/>
        </list>
    </outfit>
 
    <outfit id="20" premium="yes" >
        <list gender="0" lookType="288" name="Demonhunter">
        <stats magLevel="2"/>
        <attribute speed="100"/>
        <stats maxHealth="3000"/>
        <stats maxMana="2500"/>
        <skills shielding="3"/>
        </list>
        <list gender="1" lookType="289" name="Demonhunter">
	    <stats magLevel="2"/>
        <attribute speed="100"/>
        <stats maxHealth="3000"/>
        <stats maxMana="2500"/>
        <skills shielding="3"/>
        </list>
    </outfit>
 
    <outfit id="21" premium="yes" >
        <list gender="0" lookType="324" name="Yalaharian">
        <attribute speed="50"/>
        <stats magLevel="2"/>
        <skills dist="2"/>
        </list>
        <list gender="1" lookType="325" name="Yalaharian">
        <attribute speed="50"/>
        <stats magLevel="2"/>
        <skills dist="2"/>
        </list>
    </outfit>
 
 
    <outfit id="23" premium="yes">
        <list gender="0" lookType="366" name="Wayfarer"/>
        <list gender="1" lookType="367" name="Wayfarer"/>
    </outfit>
 
    <outfit id="24" premium="yes" >
        <list gender="0" lookType="329" name="Wedding"/>
        <list gender="1" lookType="328" name="Wedding"/>
    </outfit>
 
    <outfit id="25" access="5" premium="yes">
        <list gender="0-3" lookType="12" name="Archdemon"/>
    </outfit>
 
    <outfit id="26" access="5" premium="yes">
        <list gender="0-3" lookType="159" name="Elf"/>
    </outfit>
 
    <outfit id="27" access="5" premium="yes">
        <list gender="0-3" lookType="160" name="Dwarf"/>
    </outfit>
 
    <outfit id="28" access="5" premium="yes">
        <list gender="0-3" lookType="226" name="Frog"/>
    </outfit>
 
    <outfit id="29" access="5" premium="yes">
        <list gender="0-3" lookType="194" name="Cult"/>
    </outfit>
 
    <outfit id="30" access="5" premium="yes">
        <list gender="0-3" lookType="253" name="Headsplitter"/>
    </outfit>
 
    <outfit id="31" access="5" premium="yes">
        <list gender="0-3" lookType="254" name="Skullhunter"/>
    </outfit>
 
    <outfit id="32" access="5" premium="yes">
        <list gender="0-3" lookType="255" name="Bloodwalker"/>
    </outfit>
 
    <outfit id="33" access="5" premium="yes">
        <list gender="0-3" lookType="264" name="Brutetamer"/>
    </outfit>
 
    <outfit id="34" access="3" premium="yes">
        <list gender="0-3" lookType="75" name="Gamemaster"/>
    </outfit>
 
    <outfit id="35" access="4" premium="yes">
        <list gender="0-3" lookType="266" name="Community Manager"/>
    </outfit>
 
    <outfit id="36" access="5" premium="yes">
        <list gender="0-3" lookType="302" name="God"/>
    </outfit>
</outfits>
 

Similar threads

Back
Top