Jump to content

boeyskie

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by boeyskie

  1. I managed to get rid of the errors and got it working.

     

    My problem now is that the shop is not showing the item correctly.

    e.g. +9 Cranial Buckler shows apple in the shop.

    I can only buy the first apple in the shop, and when bought, i get the +9 Cranial Buckler.

     

    Any help will be appreciated!

    I'm trying to make a trading house where all items being sold are loaded from SQL.

    Capture.PNG

  2. This patch enables an NPC to open vending shops which enables them to sell items with refine, cards, etc..

    My problem is that this patch is too old for the latest SVN. I've tried to get rid of the errors. But the emulator says that the script is undeclared.

    Can anyone convert this patch to work on the latest SVN?

    vending.patch

    • Upvote 1
  3. Hello, I'm trying to login a character without the client.

    Here's the script/source i used:  

    Quote

    pc_setnewpc(sd, 2000010, 150010, 0, gettick(), 1, 0);

     

    The map-server shows the character logging in (also shows in @who),

    but the problem is the character won't show on the map. The character stays hidden/invisible.

    What seems to be the problem here?

    Pls send halp I really need to make this work ?

  4. Hello here's my problem:

    Whenever I warp/recall players in autotrade state, the player goes missing/hidden from the map.

    However, the autotrade player still shows in @who & counts as online. Also I can use @goto onto the player but I cannot see them. 

    I would like the players in autotrade state to still show in the map after warping them. Thank you

     

  5. Can anyone fix this please? Or does anyone know a simpler way to login a character by using only a script & without using the client? I am trying to make a bot..

     

    Quote

    vending.cpp: In function ‘void vending_reopen(map_session_data*)’:
    vending.cpp:557:59: error: invalid conversion from ‘int (*)(int, unsigned int, int, intptr_t) {aka int (*)(int, unsigned int, int, long int)}’ to ‘TimerFunc {aka int (*)(int, long int, int, long int)}’ [-fpermissive]
       add_timer(gettick() + 1, pc_txtlogin_timer, sd->bl.id, 0);
                                                               ^
    In file included from vending.cpp:12:0:
    ../common/timer.hpp:54:5: note:   initializing argument 2 of ‘int add_timer(t_tick, TimerFunc, int, intptr_t)’
     int add_timer(t_tick tick, TimerFunc func, int id, intptr_t data);
         ^~~~~~~~~
    vending.cpp: In function ‘void fake_openvending(map_session_data*, const char*)’:
    vending.cpp:737:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].nameid = 501;
                 ^~~~
    vending.cpp:738:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].amount = 1;
                 ^~~~
    vending.cpp:739:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].bound = 0;
                 ^~~~
    vending.cpp:740:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].card[0] = 0;
                 ^~~~
    vending.cpp:741:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].card[1] = 0;
                 ^~~~
    vending.cpp:742:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].card[2] = 0;
                 ^~~~
    vending.cpp:743:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].card[3] = 0;
                 ^~~~
    vending.cpp:744:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].equip = 0;
                 ^~~~
    vending.cpp:745:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].favorite = 0;
                 ^~~~
    vending.cpp:746:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].id = 0;
                 ^~~~
    vending.cpp:747:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].identify = 0;
                 ^~~~
    vending.cpp:748:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].refine = 0;
                 ^~~~
    vending.cpp:749:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].unique_id = 0;
                 ^~~~
    vending.cpp:761:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].nameid = 0;
                 ^~~~
    vending.cpp:762:13: error: ‘struct mmo_charstatus’ has no member named ‘cart’
      sd->status.cart[0].amount = 0;
     

     

  6. 12 hours ago, anacondaq said:

    script_commands.txt

    
    ---------------------------------------
    
    *addspiritball <count>,<duration>{,<char_id>};
    
    Adds spirit ball to player for 'duration' in milisecond.
    
    ---------------------------------------
    
    *delspiritball <count>{,<char_id>};
    
    Deletes the spirit ball(s) from player.
    
    ---------------------------------------
    
    *countspiritball {<char_id>};
    
    Counts the spirit ball that player has.
    
    ---------------------------------------

     

    Thank you it is exactly what I need!!!!!!!!!!!!1

  7. So I wanna create an @atcommand that when is enabled, the character uses Dangerous Soul Collect if spiritball = 0, then uses Critical Explosion when spiritball = 5, then does nothing when Critical Explosion && spiritball = 5. Pls help anyone ?

  8. Is it possible to edit the skill 'Heal' work as an AOE skill around the caster? Somewhat make it work like the skills 'Magnificat/Angelus/Windwalk' where all party members are affected when it's casted but instead, in a 3x3 area of effect.

    And after heal is casted on a player, that players gets a movement speed buff for 2seconds. Thanks in advanced

×
×
  • Create New...