Jump to content

[Erledigt] PcClickDisable


Shikka

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

Okay... neues problem =D

Das PcFollow funktioniert zwar, aber ich müsste tausend npc's erstellen (pro stadt-map).... xD

Damit kein User zu kurz kommt und das is bisl blöd...

Gibt es vielleicht eine möglichkeit, das bewegen über die Maus für einen gewissen Zeitraum auszuschalten?

Sowas wie blockmove nur für die Maus -> blockmouseclick oder so?

Sorry leute, dass ich euch hier so zubombe mit fragen ^^

versuch ->

script.c

 BUILDIN_FUNC(dis_mouse) {
clif_mouse_dis;
}
// declarations that were supposed to be exported from npc_chat.c
#ifdef PCRE_SUPPORT

----------

BUILDIN_DEF(dis_mouse, "ii"),
{NULL,NULL,NULL},
};

clif.c

/// Displays an NPC dialog message (ZC_SAY_DIALOG).
/// 00b4 <packet len>.W <npc id>.L <message>.?B
/// Client behavior (dialog window):
/// - disable mouse targeting
/// - open the dialog window
/// - set npcid of dialog window (0 by default)
/// - if set to clear on next mes, clear contents
/// - append this text
void clif_mouse_dis(struct map_session_data *sd, int npcid, const char *mes)
{
int fd = sd->fd;
int slen = strlen(mes) + 9;

WFIFOHEAD(fd, slen);
WFIFOW(fd,0)=0xb4;
WFIFOW(fd,2)=slen;
WFIFOL(fd,4)=npcid;
memcpy((char*)WFIFOP(fd,8), mes, slen-8);
WFIFOSET(fd,WFIFOW(fd,2));
}

ruft nen chat fenster auf, ohne text-inhalt.

hätte es aber gerne ohne text-fenster, dass man mit der maus nichtmehr klicken kann.

hab schon versuch einzelne sachen mit // rauszunehmen, aber klappt nicht

Edited by Shikka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

WoW, danke sehr ^^

Wusste ja nicht, dass es so schwierig und so aufwändig ist dies einzufügen ^^''

Hab ja gefragt, ob es ne möglichkeit gibt, natürlich hätte die antwort auch einfach "nein" oder "ja, aber ist zu aufwändig" oder sowas in der art lauten können.

Aufjedenfall bedanke ich mich nochmals recht herzlich für den aufwand.

(natürlich werd ich mich auch im anderem topic nochmals bedanken, insofern es geht)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...