
Dastgir
-
Content Count
3805 -
Joined
-
Last visited
-
Days Won
250
Posts posted by Dastgir
-
-
Script.c
Place This above "BUILDIN_FUNC(dispbottom)"
/*========================================== * Coloured DispBottom [By Dastgir] *------------------------------------------*/BUILDIN_FUNC(dispbottom2){ TBL_PC *sd=script_rid2sd(st); const char *message; unsigned long color; message=script_getstr(st,3); color=strtoul(script_getstr(st,2),NULL,0); if(sd) clif_colormes_e(sd,color,message); return 0;}
In the Same file
Place This below "BUILDIN_DEF(showevent, "ii"),":
BUILDIN_DEF( dispbottom2, "ss"), //[By Dastgir]
In Clif.C:
Place this at end of file:
// Modification of clif_messagecolor to send colored messages to players to chat log only (doesn't display overhead)// 02c1 <packet len>.W <id>.L <color>.L <message>.?B// [By Dastgir]int clif_colormes_e(struct map_session_data * sd,unsigned long color1, const char* msg) { unsigned short msg_len = strlen(msg) + 1; WFIFOHEAD(sd->fd,msg_len + 12); WFIFOW(sd->fd,0) = 0x2C1; WFIFOW(sd->fd,2) = msg_len + 12; WFIFOL(sd->fd,4) = 0; WFIFOL(sd->fd,8) = (color1&0x0000FF) << 16 | (color1&0x00FF00) | (color1&0xFF0000) >> 16; // RGB -> BGR safestrncpy((char*)WFIFOP(sd->fd,12), msg, msg_len); clif_send(WFIFOP(sd->fd,0), WFIFOW(sd->fd,2), &sd->bl, SELF); return 0;}
In Clif.H
Place this at the end:
int clif_colormes_e(struct map_session_data * sd,unsigned long color1, const char* msg); //[By Dastgir]
So the Format you will use
dispbottom2("0x00FF00","MESSAGE");
OR
dispbottom2 "0x00FF00","MESSAGE";
REPLACE 0x00FF00 to any colour code.
-
Well i have made this mod, i will share once i reach home.
-
Check the image i attached, its almost 20-38MiB per 2-3 seconds, and that too with no players, no mods. Latest SVN.
I don't guess this should be normal.
Also you can see its too many connections.
-
-
Don't know why its still not working. it display some "aae" when i type هلا
-
I will wait for your solution
So I will use first connection or 2nd?
Not Working!
-
prontera,141,168,5 shop CustomShop948,501:50
- script CustomShop -1,{OnInit:npcshopdelitem "CustomShop",501;for (.i = 22000; .i <= 23030; .i = .i+1){ npcshopadditem "CustomShop",.i,rand(10000000,20000000);}end;}
Why this have Infinity Loop Error?
-
Also if I use their client, do they have navigation and all ?
and Hercules have packet support for them?
-
So I should use their client instead of kro?
they use langtype 19.
-
I want to know how to put arabic support for client 2012-04-10
I tried with langtype 19,10
servicetype uae,korea
with various combination.
Any Help?
Is Hercules compatible with CentOS 5?
in General Server Support
Posted · Edited by dastgirpojee
Yes, Its compatible with all versions of CentOS,Fedora,Debian,Windows.