Thread Closed 
 
Thread Rating:
  • 5 Vote(s) - 2.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request]Mana Pot Script-InfiniteL2
Author Message
pshsha Offline
Elpy
*

Posts: 1
Joined: Oct 2012
Reputation: 0
Version: 1.4.1.88
Post: #1
[Request]Mana Pot Script-InfiniteL2
The server I play on Infinitel2 only allows you to use mana potions while out of combat.

So if anyone could find it in their hearts to make a script that uses mana potions out of combat, id love you. Smile
10-07-2012 00:17 AM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,887
Joined: Mar 2012
Reputation: 592
Version: 1.4.3.143
Post: #2
RE: [Request]Mana Pot Script-InfiniteL2
just find a normal mp potions script and in this line "if ..(normal script part).." add
    LUA Programming
and (GetMe():IsInCombat == false)

(This post was last modified: 10-07-2012 02:43 AM by TheBl4ckPhoenix.)
10-07-2012 02:43 AM
Find all posts by this user
pxovela Offline
VIP Member
***

Posts: 167
Joined: Sep 2011
Reputation: 12
Version: 1.4.1.123
Post: #3
RE: [Request]Mana Pot Script-InfiniteL2
maybe this?

    LUA Programming
zmien1 = true;
MP = 50.0;
MPID = 0;
MPPotName = 'Mana Potion';
sleeptime = 9000;
invList = GetInventory();
 
 
for item in invList.list do
  if item.Name == MPPotName then
     MPID = item.displayId;
end;
end;
ShowToClient("MP pot", "Chemi mp aimate, chemi mp!");
 
repeat
if GetMe():GetMpPercent() < MP
and (GetMe():IsInCombat == false)then
UseItem(MPID);
Sleep(sleeptime);
end;
until zmien1 == false
ShowToClient("MP pot", "morcha kino");

10-07-2012 07:40 AM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,887
Joined: Mar 2012
Reputation: 592
Version: 1.4.3.143
Post: #4
RE: [Request]Mana Pot Script-InfiniteL2
You should add MPID (mp potion ID from your server) or change "UseItem(MPID);" in "UseItem(MPPotName);"

NOTE: MP = 50.0, so it will use mp only when you have 50% mp or less, if you want use potions before, set it like 70.0 etc..
10-07-2012 11:51 AM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Request] L2 Toxic Anti-Bot Script snocrew 18 4,496 02-11-2017 19:19 PM
Last Post: Paralyzer
  mana recharge while cafting without stand up sysleo78 2 291 01-05-2017 18:58 PM
Last Post: sysleo78
  CP/Mana Stop Working Crnogorac 3 678 04-08-2016 10:36 AM
Last Post: TheQQmaster
  Need Mana Potion script aa300598 2 697 02-06-2016 09:01 AM
Last Post: aa300598
  The request xxmanxx 4 633 04-10-2015 18:46 PM
Last Post: xxmanxx
  need mana script shizzel 7 2,212 11-11-2014 02:06 AM
Last Post: eustach3
Heart Request for upgrades to Premium services. Manboi_74 0 432 09-12-2014 05:33 AM
Last Post: Manboi_74
Information NEED SCRIPT MANA POTION FOR ES-L2 c1powstyle 6 1,583 09-07-2014 23:51 PM
Last Post: sirblackhole
  Mana pots reuse k0kos 0 618 08-20-2014 04:54 AM
Last Post: k0kos
  OOP Cleanse Script Modification Request nais 2 722 08-16-2014 22:12 PM
Last Post: nais



User(s) browsing this thread: 1 Guest(s)