Jump to content

Dastgir

Script Developers
  • Content Count

    3805
  • Joined

  • Last visited

  • Days Won

    250

Everything posted by Dastgir

  1. Yes, but for checkout'ing Hercules, you can use two ways either svn checkout http://svn.github.com/HerculesWS/Hercules.git or git clone https://github.com/HerculesWS/Hercules.git
  2. I Updated the code, now its testing time. hmmm.. Map server crashes. i will fix it out. Edit: Haha, After soo much debugging, i found it was typo mistake which called out other function and it got crashed. Edit2: Tested and it is working. Here's The Files: Extended_Vending_Hercules_April08-2013.diff
  3. Yes, Its compatible with all versions of CentOS,Fedora,Debian,Windows.
  4. 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.
  5. Well i have made this mod, i will share once i reach home.
  6. 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. untitled2.bmp
  7. Don't know why its still not working. it display some "aae" when i type هلا
  8. I will wait for your solution So I will use first connection or 2nd? Not Working!
  9. Dastgir

    Infinity Loop

    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?
  10. Also if I use their client, do they have navigation and all ? and Hercules have packet support for them?
  11. So I should use their client instead of kro? they use langtype 19.
  12. 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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.