Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/12/21 in all areas

  1. announce "Player "+strcharinfo(0)+" Enters the PvP Room.",bc_all|bc_blue; The line above announces it to the entire server. You want this line right above the warp script. To make the announcement only inside the pvp room: mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" Enters the PvP Room.",bc_map|bc_blue;
    1 point
  2. 1. edit src/common/moo.h #ifdef RENEWAL #define MAX_GUILDSKILL 20 ///Max Guild skills #else #define MAX_GUILDSKILL 20 ///Max Guild skills #endif become : #define MAX_GUILDSKILL 20 ///Max Guild skills 2.edit db/pre-re/skill_db.yml add : - Id: 10016 Name: GD_GUILD_STORAGE Description: Guild Storage Expansion MaxLevel: 5 Flags: IsGuild: true Hopefully it can help you
    1 point
  3. Thank you. I'll try my best ^^
    1 point
  4. Here's one solution: In script.inc. Add this function at the end of the file: BUILDIN_FUNC(logout_tick) { TBL_PC *sd; if (!script_rid2sd(sd)) { script_pushint(st, -1); return SCRIPT_CMD_FAILURE; } if (sd->canlog_tick == 0) script_pushint(st, 0); else script_pushint(st, DIFF_TICK(gettick(), sd->canlog_tick)); return SCRIPT_CMD_SUCCESS; } in script_def.inc. Add this line at the end of the file: BUILDIN_DEF(logout_tick, ""), Then recompile your server. This script command will check for the same timer used to check if a player can log out or not. Basically it returns how many milliseconds ago was the character in combat. Example usage: - script testscript -1,{ OnInit: bindatcmd("testcmd", strnpcinfo(3)+"::OnAtCmd"); end; OnAtCmd: .@tick = logout_tick(); dispbottom "You have been in combat "+.@tick/1000+" seconds ago."; if(.@tick >= 5000 || .@tick == 0) dispbottom "Command used successfully!"; else dispbottom "You cannot use this command if you have been in combat during the last 5 seconds."; end; } Result:
    1 point
  5. View File Elf and Orc [NPC sprite] sprite of an elf archer and an Orc that I made inspired by the world of Warcraft Submitter Tio Akima Submitted 05/11/2021 Category NPC Sprites Video Content Author TioAkima  
    1 point
  6. dude, your data.ini is messed up.. it should look like this: [DATA] 0=(name of the GRF that you are using).grf 1=data.grf 2=sdata.grf 3=etcetc. and also, when you make your patch, you need to disable "read data folder 1st". also try to uncheck "read lua files before lub".
    1 point
×
×
  • Create New...