Jump to content

  •  

Klutz

Member Since 25 May 2013
Offline Last Active Jun 03 2017 09:07 AM
-----

Posts I've Made

In Topic: Hyvraine Designs

15 May 2017 - 10:18 PM

Are you free for job?


In Topic: map server errors + Crash

10 May 2017 - 03:24 PM

What changes you did in BUILDIN(purchaseok)?

because it cant call script_cleararray_pc

Nothing that's why i find it weird.

my shop calls functions to count items, and delete items.

 

gold_coin = 1

gold_bag = 10 gold_coins

 

GoldCoinCounter  - counts the total of Gold_coin+gold_bags

GoldCoinToDelete - delitem and give back change


In Topic: map server errors + Crash

08 May 2017 - 03:01 PM

Server crashed today with this errors:

 

(05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
(05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
(05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
(05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x6e) [0x58ce6e]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
(05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
(05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
(05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
(05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
(05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x85) [0x58ce85]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
(05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
(05/08/2017 06:25:54) [ Error ] : Server received crash signal! Attempting to save all online characters!

 

Player tried to use Gold Shop (Dynamic Shop).

 


-    script    GoldShop    FAKE_NPC,{

OnInit:
    tradertype(NST_CUSTOM);
    sellitem 4441,50;
    sellitem 4408,25;
    end;
    
OnCountFunds:
    setcurrency(callfunc("GoldCoinCounter","None"));
    end;
    
OnPayFunds:
    if(callfunc("GoldCoinCounter","None") < @price-@points )
        end;
    set .@InventoryCheck,0;
    if (@price < 10)
    {
        if (@price >  (callfunc("GoldCoinCounter","Coins")))
            .@InventoryCheck = 10 - @price;
    }
    else
     {
        .@InventoryCheck = @price/10;
        .@InventoryCheck = @price - (.@InventoryCheck*10);
     }
    getinventorylist();
    if ((@inventorylist_count + .@InventoryCheck ) >= MAX_INVENTORY)
    {
        .@InventoryCheck = .@InventoryCheck + @inventorylist_count + 1;
        dispbottom "You will have "+ .@InventoryCheck +" items in your Inventory.";
        dispbottom "The Maxium number allowed is: "+ MAX_INVENTORY;
        dispbottom "Please clear some space in your Inventory";
        end;
    }
    callfunc("GoldCoinToDelete",@price);
    purchaseok();
    end;
}

In Topic: map server errors + Crash

06 May 2017 - 11:06 PM

Hey,

 

I am really worried about those errors, do you know what can cause them?

 

Regards,

Klutz


In Topic: HAT - The Hercules Admin Tool!

06 May 2017 - 05:08 PM

All,

 

I am working on an installation "script" to help you walk through the steps to install the panel.

 

I am also working on a bit of a database re-write which will see some of the field names change to be more uniform. With this, a couple of new tables will be added relating to connection to the Hercules information (most of this will move out of the config directory and into the database).

super excited to see the update!