Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    409

Everything posted by Emistry

  1. if (!vip_status(VIP_STATUS_ACTIVE)) end; add on top of the script.
  2. set .@nb, query_sql("select name, kills, deaths from pvpladder order by kills desc limit 10"+ getvariableofnpc(.showtotal,"DOTAPVP"), .@name$, .@kills, .@deaths); Change to set .@nb, query_sql("select name, kills, deaths from pvpladder order by kills desc limit "+ getvariableofnpc(.showtotal,"DOTAPVP"), .@name$, .@kills, .@deaths);
  3. if ( getmapusers("mapname") >= 0 ) { // map exist. } else { // map not exist. }
  4. not possible, the free mob id range are limited. I dont think its enough to cover if you wanted to duplicate all monster. Unless gravity finally decided to increase the range.
  5. if i recall correctly, these red/yellow/orange/white potion visual effect are hard-coded in the client itself. for other item_db ... if you want to add the visual effect you can use the specialeffect script command.
  6. npc/guild/agit_main.txt#L96-L98 if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; } change to if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; .@gid = $@mobid[0]; switch ( gettime(DT_DAYOFWEEK) ) { case MONDAY: case WEDNESDAY: .@max_hp = 1000000; break; case TUESDAY: case THURSDAY: .@max_hp = 5000000; break; default: break; } if ( .@max_hp > 0 ) { setunitdata .@gid,UMOB_MAXHP,.@max_hp; setunitdata .@gid,UMOB_HP,.@max_hp; } }
  7. You can try something like this. https://pastebin.com/Y0wRMZj8 There are few way to do it: create multiple npc and then hide + unhide npc at different town use the unitwarp script command to warp the npc etc
  8. Next time, kindly drop a PM in forum instead. Add the missing function ... function script epoch_time { .@time = getarg(0); .@hour = ( .@time / 3600 ); .@min = ( .@time % 3600 ) / 60 ; .@sec = ( ( .@time % 3600 ) % 60 ) % 60; return sprintf( "%02d:%02d:%02d",.@hour,.@min,.@sec ); } I added all these on top of each script that needed it most of the time.
  9. i believe 3999 is the highest ID you can use at the moment, 4000+ are all reserved for monster/clone/npc/etc.... these are limited by the client itself.
  10. if (compare( strcharinfo(1), "#" )) { // ... }
  11. else if( NextJobExp || NextBaseExp || !( .@eac&EAJL_2 ) || !Upper ) { change to else if ( BaseLevel < 255 || JobLevel < 120 || !( .@eac&EAJL_2 ) || !Upper ) {
  12. @reloadscript @unloadnpc ...... restart server lol
  13. npc/scripts_custom.conf#L10 remove it...
  14. prontera,155,181,5 script Sample#online_hour 4_F_KAFRA01,{ end; OnTimer1000: OnInit: initnpctimer; delwaitingroom; waitingroom "" + gettimestr("%Y-%m-%d %H:%M:%S",22),0; end; }
  15. OnInit: waitingroom "Donation Farmzone 2 Hours",0; OnMinute00: if (( gettime(DT_DAYOFWEEK) == SATURDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) && (( gettime(DT_HOUR) >= 11 && gettime(DT_HOUR) < 13 ) || ( gettime(DT_HOUR) >= 18 && gettime(DT_HOUR) < 20 )) ) { enablenpc strnpcinfo(3); } else { disablenpc strnpcinfo(3); } end; sample has been shown previously, you should actually try it out and adjust it yourself too.... shouldn't really expecting a 100% spoon-feed everytime lol Weekday restriction ... if ( gettime(DT_DAYOFWEEK) == SATURDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) { Weekday + hour restriction. ... if (( gettime(DT_DAYOFWEEK) == SATURDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) && ( gettime(DT_HOUR) >= 18 && gettime(DT_HOUR) < 20 )) { the changes are obvious here... just add another condition checking for the hour range....
  16. OnInit: waitingroom "Donation Farmzone 2 Hours",0; OnMinute00: if (( gettime(DT_DAYOFWEEK) == SATURDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) && ( gettime(DT_HOUR) >= 18 && gettime(DT_HOUR) < 20 )) { enablenpc strnpcinfo(3); } else { disablenpc strnpcinfo(3); } end;
  17. use these... Basically, when reading the forum title, I have no idea what is the topic about ... what is "these" refer to? It has no meaning/information at all.
  18. - script commands_start -1,{ OnPCBaseLvUpEvent: if ( BaseLevel >= 20 && getgroupid(0) == 0 ) { query_sql("UPDATE `login` SET `group_id` = 1 WHERE `account_id` ="+getcharid(3)+""); announce strcharinfo(0)+" has unlocked player commands",0; dispbottom "congratulations! now you need to relog to use commands"; } end; } add the groupid checking before alter the groupid, this help to prevent the script affecting any GM in case they level up their characters, or cases where player assigned to different group id that isn't equal to 0.
  19. try this. https://pastebin.com/aBF1CKj3
  20. OnInit: waitingroom "Donation Farmzone 2 Hours",0; end; change to OnInit: waitingroom "Donation Farmzone 2 Hours",0; OnClock0000: if ( gettime(DT_DAYOFWEEK) == SATURDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) { enablenpc strnpcinfo(3); } else { disablenpc strnpcinfo(3); } end;
  21. try this. https://pastebin.com/XBHmRq2W
  22. In fact the script has already stopped giving out the hourly point when the script detected the char vending/afk/chatting. the displaying information are kinda misleading since it doesn't cater the state of char when they are vending or afk. https://pastebin.com/5g1XV4q0
  23. Read the guide that provided ... https://github.com/rathena/rathena/wiki/SQL_Installation#For_Windows
  24. getitem 12244,1; change to getitem F_Rand( 501,502,503,504,505,506,507 ),1;
×
×
  • Create New...