Jump to content

Rynbef

Forum Moderator
  • Posts

    941
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Rynbef

  1. Idea: add to *getunittype() one (or two) new types BL_CMD/BL_SCRIPTCMD to check if monster was killed by script-/ or atcommand. A new pre defined variable of type int *killedmid it contains the ID of the mob who was killed(not the unique game mob ID *GID). Will be empty(0) if no mob was killed of course. //I don't know if there is any other way to check if mob was killed by script and get the MOB ID or cast GID to MOB ID. If monster spawn by script command with own unique event label its not possible to check if the mob was killed by command (script/at) in my opinion. Only we know the ID. Maybe I'm lost but tried/searched everything. What do you think about? Rynbef~
  2. Rynbef

    PvP NPC

    @HerbertsidyThere is a DOTA PVP Ladder by @AnnieRurubut it's a few years ago since updated. But it should be exactly what ur looking for. https://herc.ws/board/topic/18871-dota-pvp-ladder/?tab=comments#comment-97841 EDIT: @AnnieRuruupdated it at 20th of december 2020. I've updated link above. Rynbef~
  3. @BlazingSpearPls attach ur script and I can fix it. Rynbef~
  4. @ErossU can find the files for this at: data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/basic_interface/ If u mean the equipment costume window exactly u can find it here: data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/basic_interface/equipwin_costume.bmp Rynbef~
  5. @Sephiroth91 1st suggestion change: bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd"); To: bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd",0,0); 2nd suggestion: U've also tested with my function? This function attach the player and use the command. Rynbef~
  6. @Ylen X Walker @Norse Please post any console error. Rynbef~
  7. @Sephiroth91Maybe try charcommand "@dailyreward"; This should exactly like typing in by keyboard. Rynbef~
  8. @Erossmaybe it use the twitter support of newer clients. Or a WebView. Idk if it is implemented yet if not it's could be an extension injected as dll file in the client. In my opinion one of the hackshield does support WebView but idk which one. Rynbef~
  9. @Sephiroth91Try to change: bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd",0,99); To: bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd"); Or if it won't work: bindatcmd("dailyreward","LOGIN::OnLoginCmnd"); Rynbef~
  10. @ErossTest the modification on both and then let me know if it works or not. Rynbef~
  11. @acaciomilkI've optimized u're script a bit. NOTE: I can't test it yet but it's should work. Suggestions: Use close2; to close the dialog and afterwards u can kick player or else cause he will keep attached to the script. Then end; the script. I can recommend to use switch(getgmlevel()) instead of calling so much script labels. U readparam before checking it and call it in the if statement again. This makes no sense if u don't store it in an array or variable. On the event labels u used close; but there was no dialog therefore its causes errors. U need to end; the script. Don't declair labels inside an if statement. U're own labels needs to declaired like the default labels "OnInit" or "OnPCLoginEvent". The close2; is better if u give/delete items or set variables cause auto-close can be abused. Seguranca_Aviso optimized.txt Rynbef~
  12. Oh my mistake. Change: if(!attachedrid()) To: if(!getattachedrid()) Rynbef~
  13. Change the slot amount at the item_db_equip.yml at ur server and the visual slots at the iteminfo.lub located in ur ragnarok folder. Notice that u've to patch the iteminfo.lub to every user so they can see it too. Rynbef~
  14. @Sephiroth91Try to add this above to ur item: callfunc "REWARDCMD",getcharid(3); And use this modified version (not tested): DailyReward_changed.txt Rynbef~
  15. @Akbaremaybe remove "disable_items;" after: mes "Requirements:"; Normally it blocks changing equipment while talking to npc but it could be possible that it couldn't count ur item because it is an equipment item. Rynbef~
  16. @Erossmaybe u used the wrong file. But I've added an if-statement to check if mob class is boss too. ChangedMob v2.cpp @Erossdoes it solved ur request? Rynbef~
  17. @ErossTry this changes but the MVPs need MVP Exp to multiply the stats. Changed Mob.cpp Rynbef~
  18. @ErossPls let us know this at the begin of ur request than it will be much easier to help u. In ur case it begin at line 4134. I've already changed everything and attached the changed file. Changed Mob.cpp Rynbef~
  19. @Sephiroth91Rename the Label by replacing all OnLoginCmnd to OnCommandLogin. Than call cmdothernpc "LOGIN","Login"; Don't forget to replace every label calls like Bindcommand and else. Rynbef~
  20. @Sephiroth91try: cmdothernpc "LOGIN","OnLoginCmnd"; Rynbef~
  21. @SurefirerDo u replaced the cps.dll on ur folder with the new one? Rynbef~
  22. @Sephiroth91Maybe add this on ur item: cmdothernpc "<npc name>","<command>"; This is simply "donpcevent <npc name>::OnCommand<command>". It is an approximation of official server script language's 'cmdothernpc'. Returns true if the command was executed on the other NPC successfully, false if not Rynbef~
  23. @Sephiroth91Maybe change: prontera,5,5,5 script LOGIN 111,{ To: - script LOGIN -1,{ Rynbef~
  24. @ErossAt src/map/mob.cpp on line 4544 it begins. Just change: mob->status.str = max(1, stat); To: mob->status.str = max(1, (stat*6)); And the same on the other stats below the other stats. Attack change on line 4452 from: mob->status.rhw.atk = atk; To: mob->status.rhw.atk = atk*6; Defense change on line 4486 from: def = cap_value(def, DEFTYPE_MIN, DEFTYPE_MAX); To: def = cap_value(def*6, DEFTYPE_MIN, DEFTYPE_MAX); Recompile ur server after. Ps: NOT TESTED!! Rynbef~
  25. @Yuna @arcada Pease post ur pet script here. That we can take a look on it to solve the problem maybe. petloot <max items>; This command will turn on pet looting, with a maximum number of items to loot specified. Pet will store items and return them when the maximum is reached or when pet performance is activated. Source: https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt Maybe add on the Egg on OnEquip part or on the "Script: >" part of the pet "petloot <max items>;" Rynbef~
×
×
  • Create New...