Jak Usun?c kilka domk?w

KOttek

User
Zarejestrowany
Dołączył
Grudzień 14, 2009
Posty
11
Liczba reakcji
0
Mam Problem bo przerabiam mape i chce tam gdze domek cos innego .Usuno?em W house.xml i w folderze house i jak w?anczam silnik ?aduj? sie domki to jest error.
PLX o pomoc dam Reputa !
Notka moderatorska:
Z?y dzia?, przenosz?.
 
Odp: Jak Usun?c kilka domk?w

Od?wie?am !!! Prosze o pomoc !!
 
Odp: Jak Usun?c kilka domk?w

Je?li gracz nie zalogowa? si? przez 15 dni domek zostanie automatycznie usuni?ty :

cleanhouse.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Clean houses mod" version="1.0" author="nsanee" contact="otland.net" enabled="yes">
    <description>
        This mod will clean houses of inactive players and move their items to the depot.
        
        config explained:
            
            days - If the player hasn't logged in for this number of days his house will be freed.
            log - true/false, whether to enable logging of which houses have been cleaned.
            file - path to the log file, where logs will be stored. Ignored if 'log' set to false
        
            DO NOT remove doSaveServer() at the end, otherwise if your server happens to crash before the nearest server save you will regret it =)
    </description>

    <config name="cleanhouses_conf"><![CDATA[
    
        config = { 
            days = 14,
            log = true,
            file = getDataDir() .. "/logs/cleanhouses.txt"
        }
        
    ]]></config>
    <globalevent name="cleanhouses" type="start" event="buffer"><![CDATA[
        domodlib('cleanhouses_conf')
        local house = db.getResult("SELECT `owner` ,`id` FROM `houses` WHERE `owner` IN (SELECT `id` FROM `players` WHERE `lastlogin` < UNIX_TIMESTAMP() - "..config.days.. "*24*60*60)")
        local logs = " :: Houses cleaned:\n\n"
        if house:getID() ~= -1 then
            repeat
                logs = logs .. getHouseInfo(house:getDataInt('id')).name ..", owned by " .. getPlayerNameByGUID(house:getDataInt('owner')) .. "\n"
                setHouseOwner(house:getDataInt('id'), 0)
            until not house:next()
        else
            logs = logs .. "There were no houses to clean."
        end
        if config.log then
            doWriteLogFile(config.file, logs)
        end
        doSaveServer()
    ]]></globalevent>
</mod>

w MODS.

Pozdrawiam.
 
Odp: Jak Usun?c kilka domk?w

Ale mi chodzi ?e Wogule na mapie go nie by?o .
:(
 
Odp: Jak Usun?c kilka domk?w

Kilka pyta?

Owner dalej zamieszkuje ?
Nie mo?esz usun?? wszystkich a p??niej je wczyta? ?
Jakie dok?adnie domki maj? by? wyczyszczone co o nich wiesz ?

Napisz nast?pnym razem na gg :P
 
Odp: Jak Usun?c kilka domk?w

Nic z tego .
Chce z mapy domek usunac ! zeby go nie by?o usuno?em w map editor i w house i w house.xml i wtedy b?ad jest ! xD
 
Odp: Jak Usun?c kilka domk?w

Mo?e poka? jaki error daj jak najwi?cej informacji mo?esz sypnij ss'ami itp bo narazie to jest tak ?e u?ytkownicy zgaduj? co jest nie tak ;p
 
Odp: Jak Usun?c kilka domk?w

Usu? ca?? zawarto?? w bazie danych typu title (i tego typu sprawy aby by?y one puste) Oczywi?cie na wy??czonym silniku. Je?eli dobrze usune?e? z house powinien by? problem z g?owy
 
Back
Do góry