Jump to content

Hijirikawa

Members
  • Posts

    193
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Hijirikawa

  1. *getwaitingroomusers "<NPC object name>"; This command get all the characters in the waiting room of the given NPC and stores their gids in the array .@waitingroom_users[]. Also, stores the the number of characters in the variable .@waitingroom_usercount Suppose you could use that.
  2. *disablenpc "<NPC object name>"; *enablenpc "<NPC object name>"; enablenpc strnpcinfo(3); disablenpc strnpcinfo(3);
  3. Try to use disable npc instead of hide.
  4. I see now, thanks. Now, for instance, limit is 24 hours, then I should do this? OnPCLogoutEvent: set checkday,gettimetick(1); end; OnPCLoginEvent: if(gettimetick(1) >= checkday) dispbottom "You have been away for more than 1 day"; end;
  5. Sorry I'm still confused, but if the formula would be logintime - logouttime, wouldn't there be a chance of it being negative if we use gettimetick(2)?
  6. how would the calculation be? The description says it counts the second since start of current day. However, what if, for instance the player played at 01:00 server time, and then log back in the next day at 12:00, would it not result in a negative number?
  7. I'm trying to make a script, but I need the formula on how to calculate the player's logout time efficiently. Can anyone help me with this one? Thanks.
  8. It says here // Prize Settings // Prize Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .prize = 2; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_prize[0],125,501,10; setarray .tsm_prize[0],450,501,30;
  9. You could create another table for that and trigger it using OnPCLogin or something.
  10. Release it free for justice!!!! xD
  11. morocc,161,90,5 script Poring#test 1002,{ if(.timer == 1) end; mes "Pay me?"; menu "Yes",-; if(zeny < .zeny) end; zeny -= .zeny; setnpcdisplay strnpcinfo(3), "Drops", .disguise; set .timer,1; initnpctimer; end; OnTimer5000: setnpcdisplay strnpcinfo(3), "Poring", .original; set .timer,0; stopnpctimer; end; OnInit: set .disguise, 1113; set .original, 1002; set .zeny, 1; end; } Working like a charm.
  12. It's for sale I suppose. Check the graphics showcase forum for information about it.
  13. Did you even add it to your custom.conf file?
  14. - script Healer -1,{ .@Price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 10; // Heal delay, in seconds if (@HD > gettimetick(2)) end; if (.@Price) { message strcharinfo(0), "Healing costs " + callfunc("F_InsertComma",.@Price) + " Zeny."; if (Zeny < .@Price) end; if (select("^0055FFHeal^000000:^777777Cancel^000000") == 2) end; Zeny -= .@Price; } specialeffect2 EF_HEAL2; percentheal 100,100; if (.@Buffs) { specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; } if (getbrokenid(1) >= 1) { repairall; } if(getgroupid() >= 5 ){ set(.@min, 5); // duration in minutes sc_start(SC_CP_HELM, (.@min * 1000 * 60), 1); sc_start(SC_CP_ARMOR, (.@min * 1000 * 60), 1); sc_start(SC_CP_SHIELD, (.@min * 1000 * 60), 1); sc_start(SC_CP_WEAPON, (.@min * 1000 * 60), 1); switch ( basejob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( upper == 1 && baselevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, 360000, 5, .@spirit,0,0; skilleffect .@spirit, 5; } } if (.@Delay) @HD = gettimetick(2) + .@Delay; end; }
  15. Can I see the entire script?
  16. prontera,180,180,5 script Poring#test 1002,{ if(.timer == 1) end; mes "Pay me?"; menu "Yes",-; if(zeny < .zeny) end; zeny -= .zeny; setnpcdisplay "Drops",.disguise; set .timer,1; initnpctimer; end; OnTimer30000: I meant that.
  17. Try adding end; just before the timer.
  18. Oh, sorry, I didn't know. Thanks for the correction~
  19. If Statements if(strcharinfo(3) == "payon"){ do payon stuff } else if(strcharinfo(3) == "prontera"){ do prontera stuff } else if(strcharinfo(3) == "alberta"){ do alberta stuff } IF + Switch Statements if(strcharinfo(3) == "payon"){ set .@town,1; } if(strcharinfo(3) == "prontera"){ set .@town,2; } if(strcharinfo(3) == "alberta"){ set .@town,3; } switch(.@town){ case 1: payon here case 2: prontera here case 3: alberta here } Just do which ever will look cleaner and easier to follow, I'd pick the combo with switch if it was me though
  20. Try this one prontera,180,180,5 script Poring#test 1002,{ if(.timer == 1) end; mes "Pay me?"; menu "Yes",-; if(zeny < .zeny) end; zeny -= .zeny; setnpcdisplay "Drops",.disguise; set .timer,1; initnpctimer; OnTimer30000: setnpcdisplay "Poring",.original; set .timer,0; stopnpctimer; end OnInit: set .disguise, 1113; set .original, 1002; set .zeny, 1; end; }
  21. Yup, you can do some if statements to check where the npc or player using the script is.
  22. You can probably use the disguise NPC as base to make it work. This might not be the optimal script, but yeah, if I got you right, this will work how you want it. - script PoringToDrops#main -1,{ if(.timer == 1) end; mes "Pay me?"; menu "Yes",-; if(zeny < .zeny) end; zeny -= .zeny; setnpcdisplay "Drops",.disguise; set .timer,1; initnpctimer; OnTimer30000: setnpcdisplay "Poring",.original; set .timer,0; stopnpctimer; end OnInterIfInitOnce: set .disguise, 1113; set .original, 1002; set .zeny, 1; end; } prontera,180,180,5 duplicate(PoringToDrops#main) Poring 1002
  23. Need more information regarding that WPE, RPE. And can't you just block it by using Packet Obfuscation?
  24. Any ideas if that would be do-able on patcher? It really is a good idea.
  25. You should put a check on it. Else everyone will change into a Sniper.
×
×
  • Create New...