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

A lot of problems!! >:(!

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
Hello otland.. i have a lot of problems on my server! :S!

1.- when i have more than 100 potions and when i used appears like this
15:00 Using one of 2 mana potions...
15:00 Using the last mana potion...
15:00 Using one of 100 mana potions...
15:00 Using one of 99 mana potions...
WTF?

2.- if i have ANY item when i want to sell it I CANT! the game tellme that i dont have the item



3.- the items DOESNT stack when I put it in my backpack...



4.- whats wrong with this script..

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fionaa" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
    <health now="200" max="200"/>
    <look type="139" head="20" body="39" legs="45" feet="7" addons="2"/>
    <parameters>
        <parameter key="module_shop" value="1"/>
        <parameter key="shop_sellable" value=""
        <parameter key="shop_buyable" value="obsidian knife,5908,5000;blessed wooden stake,5942,5000;Rust Remover,9930,100,Ape Fur,5883,120;Bat Wing,5894,100;Bear Paw,5896,300;Behemoth Claw,5930,1000;Beholder Eye,5898,1000;Blue Note,2349,1000;Blue poc,5912,1000;Brown poc,5913,100;Brutus Bloodbeard's Hat,6099,1000000;Burning Heart,2353,100000;Cat's Paw,5480,100000;Chicken Feather,5890,100;Cobrafang Dagger,2351,100000;Countess Sorrow's Frozen Tear,6536,5000;Crystal Arrow,2352,5000;Deadeye Devious'Eye Patch,6102,100000;Demon Dust,5906,3000;Demon Horn,5954,3000;Demonic Essence,6500,1000;Dracola's Eye,6546,500000;Dragon Claw,5919,500000;Energy Soil,8303,10000;Eternal Flames,8304,5000;Eye Patch,6102,500;Ferumbras'Hat,5903,1000000;Fighting Spirit,5884,60000;Fish Fin,5895,2000;Flawless Ice Crystal,8300,1000;Gear Wheel,9690,1000;Giant Spider Silk,5879,5000;Gland,8971,1000;Glimmering Soil,8299,1000;Glob of Acid Slime,9967,100;Glob of Mercury,9966,100;Glob of Tar,9968,100;Green Dragon Leather,5877,120;Green Dragon Scale,5920,100;Green Piece of Cloth,5910,1000;Gold Ingot,9971,10000;Handmaiden's Protector,6539,50000;Hardened Bone,5925,1000;Heaven Blossom,5921,100;Holy Orchid,5922,1000;Honeycomb,5902,100;Hook,6097,500;Huge Chunk of Crude Iron,5892,10000;Hydra Egg,4850,1000;Iced Soil,8302,1000;Imperor's Trident,6534,500000;Iron Ore,5880,1000;Lethal Lissy's Shirt,6100,50000;Lizard Leather,5876,150;Lizard Scale,5881,120;Magic Sulphur,5904,12000;Mandrake,5015,500000;Minotaur Leather,5878,100;Morgaroth's Heart,5943,10000;Mother Soil,8305,1000;Mr. Punish's Handcuffs,6537,1000000;Nails,8309,100;Natural Soil,8298,1000;Nose Ring,5804,1000000;Ornamented Ankh,2354,5000;Orshabaal's Brain,5808,50000;Peg Leg,6126,500;Perfect Behemoth Fang,5893,1000;Piece of Draconian Steel,5889,10000;Piece of Hell Steel,5888,10000;Piece of Massacre's Shell,6540,500000;Plasmother's Remains,6535,50000;Pure Energy,8306,20000;Red Dragon Leather,5948,100;Red Dragon Scale,7314,200;Red Piece of Cloth,5911,1000;Ron the Ripper's Sabre,6101,100000;Royal Steel,5887,10000;Seeds,7732,500;Shard,7290,1000;Sniper Gloves,5875,3000;Soul Orb,5944,300;Soul Stone,5809,100000;Sword Hilt,2350,150000;The Ring of the Count,8752,10000;Turtle Shell,5899,150;Vampire Dust,5905,1000;Vampiric Crest,9955,10000;Warrior's Sweat,5885,15000;White Piece of Cloth,5909,1000;Wolf Paw,5897,100;Yellow Piece of Cloth,5914,1000;"/>
    </parameters>
</npc>


Otland thank you so much for your time. will give rep++ if anyone helpme
 
what about the potions

15:00 Using the last mana potion...
15:00 Using one of 100 mana potions...

Game.cpp:
Change:
Code:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    int32_t subType = -1;
    if(item->hasSubType() && !item->hasCharges())
        subType = item->getSubType();
 
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), subType, false);
 
    char buffer[40 + it.name.size()];
    if(count == 1)
        sprintf(buffer, "Using the last %s...", it.name.c_str());
    else
        sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());
 
    player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

To:

Code:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), -1);
 
    char buffer[40 + it.name.size()];
    if(count == 1)
        sprintf(buffer, "Using the last %s...", it.name.c_str());
    else
        sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());
 
    player->sendTextMessage(MSG_INFO_DESCR, buffer);
}
 
dude could be more specific i mean i really dont know what are you talking about..? sources? where can i find that? game.ccp? wtf is that? where can i find that? i mean... please helpme :S!
 
The source code that you compile for your server's exe. If you don't have it, you need to download it from the svn. If you don't know what that is, then close your server and go away
 
Back
Top