Tales Posted September 21, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Share Posted September 21, 2014 Its all that i want. I have a event called The Last of Us. I want to add anything that do what the title says. Any ideias? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted September 24, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted September 24, 2014 block movement pcblockmove getcharid(3), 1;. . there is no block skill command, but the nearest I would go with setoption, option_xmas, which also blocked attack 1 Quote Link to comment Share on other sites More sharing options...
0 Strand Posted February 16, 2020 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 102 Reputation: 2 Joined: 07/01/13 Last Seen: May 23, 2021 Share Posted February 16, 2020 On 9/24/2014 at 8:14 AM, AnnieRuru said: block movement pcblockmove getcharid(3), 1; . . there is no block skill command, but the nearest I would go with setoption, option_xmas, which also blocked attack Hello @AnnieRuru How do I manage to keep blocking skill but unblock attacks? Where exactly can I edit it? Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted February 17, 2020 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 14 hours ago Share Posted February 17, 2020 16 hours ago, Strand said: Hello @AnnieRuru How do I manage to keep blocking skill but unblock attacks? Where exactly can I edit it? if you use lastest rathena just use this script commands *setpcblock <type>,<state>{,<account ID>}; *getpcblock {<account ID>}; 'setpcblock' command prevents/allows the player from doing the given <type> of action according to the <state> during the player session (note: @reloadscript removes all <type> except PCBLOCK_IMMUNE). The <type> values are bit-masks, multiples of <type> can be added to change the player action. The action is blocked when the <state> is true, while false allows the action again. 'getpcblock' command return the bit-mask value of the currently enabled block flags. Available <type>: PCBLOCK_MOVE Prevent the player from moving. PCBLOCK_ATTACK Prevent the player from attacking. PCBLOCK_SKILL Prevent the player from using skills/itemskills. PCBLOCK_USEITEM Prevent the player from using usable items. PCBLOCK_CHAT Prevent the player from sending global/guild/party/whisper messages. PCBLOCK_IMMUNE Prevent the player from being hit by monsters. PCBLOCK_SITSTAND Prevent the player from sitting/standing. PCBLOCK_COMMANDS Prevent the player from using atcommands/charcommands. PCBLOCK_NPCCLICK Prevent the player from clicking/touching any NPC/shop/warp. PCBLOCK_EMOTION Prevent the player from using emotions. PCBLOCK_NPC Simulate NPC interaction. Useful for NPC with no mes window. Sum of PCBLOCK_MOVE|PCBLOCK_SKILL|PCBLOCK_USEITEM|PCBLOCK_COMMANDS|PCBLOCK_NPCCLICK. PCBLOCK_ALL Sum of all the flags. Examples: // Make the attached player invulnerable to monster (same as @monsterignore) setpcblock PCBLOCK_IMMUNE, true; // Prevents the attached player from attacking and using skills setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL, true; // Re-enables attack, skills and item use setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, false; // getpcblock related checks if (getpcblock() & PCBLOCK_IMMUNE) mes "You are invulnerable!"; if (getpcblock() & (PCBLOCK_MOVE|PCBLOCK_SITSTAND)) mes "You can't walk or sit."; if ((getpcblock() & (PCBLOCK_ATTACK|PCBLOCK_SKILL)) == 0) mes "You can attack and use skills."; if (getpcblock() & PCBLOCK_CHAT) mes "You can't chat."; Quote Link to comment Share on other sites More sharing options...
0 Strand Posted February 17, 2020 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 102 Reputation: 2 Joined: 07/01/13 Last Seen: May 23, 2021 Share Posted February 17, 2020 4 minutes ago, LearningRO said: if you use lastest rathena just use this script commands *setpcblock <type>,<state>{,<account ID>}; *getpcblock {<account ID>}; 'setpcblock' command prevents/allows the player from doing the given <type> of action according to the <state> during the player session (note: @reloadscript removes all <type> except PCBLOCK_IMMUNE). The <type> values are bit-masks, multiples of <type> can be added to change the player action. The action is blocked when the <state> is true, while false allows the action again. 'getpcblock' command return the bit-mask value of the currently enabled block flags. Available <type>: PCBLOCK_MOVE Prevent the player from moving. PCBLOCK_ATTACK Prevent the player from attacking. PCBLOCK_SKILL Prevent the player from using skills/itemskills. PCBLOCK_USEITEM Prevent the player from using usable items. PCBLOCK_CHAT Prevent the player from sending global/guild/party/whisper messages. PCBLOCK_IMMUNE Prevent the player from being hit by monsters. PCBLOCK_SITSTAND Prevent the player from sitting/standing. PCBLOCK_COMMANDS Prevent the player from using atcommands/charcommands. PCBLOCK_NPCCLICK Prevent the player from clicking/touching any NPC/shop/warp. PCBLOCK_EMOTION Prevent the player from using emotions. PCBLOCK_NPC Simulate NPC interaction. Useful for NPC with no mes window. Sum of PCBLOCK_MOVE|PCBLOCK_SKILL|PCBLOCK_USEITEM|PCBLOCK_COMMANDS|PCBLOCK_NPCCLICK. PCBLOCK_ALL Sum of all the flags. Examples: // Make the attached player invulnerable to monster (same as @monsterignore) setpcblock PCBLOCK_IMMUNE, true; // Prevents the attached player from attacking and using skills setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL, true; // Re-enables attack, skills and item use setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, false; // getpcblock related checks if (getpcblock() & PCBLOCK_IMMUNE) mes "You are invulnerable!"; if (getpcblock() & (PCBLOCK_MOVE|PCBLOCK_SITSTAND)) mes "You can't walk or sit."; if ((getpcblock() & (PCBLOCK_ATTACK|PCBLOCK_SKILL)) == 0) mes "You can attack and use skills."; if (getpcblock() & PCBLOCK_CHAT) mes "You can't chat."; Hello LearningRO! Not currently using latest rAthena. Do you know of another method? Regards! Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted February 18, 2020 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 14 hours ago Share Posted February 18, 2020 On 2/17/2020 at 8:30 AM, Strand said: Hello LearningRO! Not currently using latest rAthena. Do you know of another method? Regards! maybe you can add manual this commits https://github.com/rathena/rathena/pull/4067 Quote Link to comment Share on other sites More sharing options...
Antares Posted September 24, 2014 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 420 Reputation: 89 Joined: 01/30/12 Last Seen: April 29, 2023 Share Posted September 24, 2014 My first idea is to use the admin skill "Good night sweethart" on the player with an ontouch npc (infinite sleep, no immunity, can't be canceled). Or you can try other statuses as well like silence+magnetic earth, spider web, frozen, sleep, stone curse (but I'm not sure if you can apply them with script so they don't take in account resistances.). 1 Quote Link to comment Share on other sites More sharing options...
Tales Posted September 25, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Author Share Posted September 25, 2014 Solved Quote Link to comment Share on other sites More sharing options...
Question
Tales
Its all that i want.
I have a event called The Last of Us. I want to add anything that do what the title says. Any ideias?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.