Jump to content

Hasi105

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Recent Profile Visitors

863 profile views

Hasi105's Achievements

Poring

Poring (1/15)

  • Reacting Well
  • Conversation Starter
  • First Post
  • Dedicated
  • One Month Later

Recent Badges

1

Reputation

  1. Hallo there i got it finaly running that my custom created mobs can also enjoy the players carts. rathena/src/map/clif.cpp: void clif_getareachar_unit( map_session_data* sd,struct block_list *bl ){ ..... case BL_MOB: { ..... int carttype = 0; if (md->sc.getSCE(SC_PUSH_CART)) { carttype = md->sc.getSCE(SC_PUSH_CART)->val1; PACKET_ZC_EFST_SET_ENTER p{}; p.packetType = HEADER_ZC_EFST_SET_ENTER; p.targetID = md->bl.id; p.type = status_db.getIcon(SC_PUSH_CART); p.duration = client_tick(9999); #if PACKETVER >= 20120618 p.duration2 = p.duration; #endif p.val1 = carttype / 64 - 1; p.val2 = 0; p.val3 = 0; clif_send(&p, sizeof(p), &sd->bl, AREA); } ... } ... } Here also a script to set it to a bl->id like a spawned monster or npc BUILDIN_DEF(setunitcart, "ii"), BUILDIN_FUNC(setunitcart) { struct block_list* bl = nullptr; int carttype = script_getnum(st, 2); if (carttype < 0 || carttype > MAX_CARTS) return SCRIPT_CMD_SUCCESS; bl = map_id2bl(script_getnum(st, 3)); if (bl) sc_start(bl, bl, SC_PUSH_CART, 100, carttype, 0); return SCRIPT_CMD_SUCCESS; } I hope you'll find it usefull like me. A little hint at the end here... you can get the block id of a mob after spawning them (mob_once_spawn in the mob.cpp returns a int32 with a block id or 0 for failed to spawn)
  2. You have to first save the new "to equip" body amor after checking if this has the tao card within it. Then you can check lets say a variable named "toEquipTaoNameID" if it is set by your check then you can let the drop in hp get ignored. (reminder, reset the "toEquipTaoNameID" again to prevent exploids)
  3. I know. Is there any other way to help me? Thanks for the help so far
  4. Dont work to me *tested* am using Svn(14952) and 2010-06-01aRagexeRE
  5. Hi, i hope i get some help with my problem. I want to crate a src where only the message gets displayed overhead like a talkie box ( important to say is.... this massage shall not get displayed in chat!!! ). but if i use "clif_talkiebox" it doesn't trigger by it self *displayed nothing thanks for any suggestions.
  6. Hi as in the Title of this topic announced, i got a problem.... It is when i send a clif_message(clif.c) with text arround in mob_dead(mob.c) it only stand for arround 1200milliseconds..... can / how can i get this time expandet so that it would be like unittalk time span of displaying the overhead text? Thanks for any of ur tips or suggestions.
×
×
  • Create New...