hi can someone edit this script with food buffs on it like +10agi +10vit +10int +10dex +10str
and add a waitingroom on it. cause im putting this but not working.
OnInit: waitingroom "text here",0; end; }
HERE's the script :
/*
Author : 2essydev
NPC Name : Healer+
Description : An in-game configurable Healer. Level 99 GM can
configure the buff list.
Version : 1.0
*/
prontera,151,189,6 script Kuya Elly Healer 899,{
goto hscript;
OnInit:
waitingroom "Kuya Elly Healer",0;
end;
}
// ---------------------------------------------------------------------
// -- NPC Configuration --
// !! DONT TOUCH THIS WHEN YOU ARE NOT SURE WHAT YOU ARE TRYING TO DO !!
// ---------------------------------------------------------------------
//Arrays
//[0] = Blessing [7] = Shield CP [14] = Kaupe
//[1] = Increase Agi [8] = Armor CP [15] = True Sight
//[2] = Suffragium [9] = Helm CP [16] = Wind Walk
//[3] = Aspersio [10] = Concentration [17] = Poem of Bragis
//[4] = Weapon Perfection [11] = Assumptio
//[5] = Over Thrust [12] = Kaizel
//[6] = Weapon CP [13] = Kaahi
//
//Default Buff is Blessing and Increase Agility
setarray .buffstr$[0],"Blessing","Increase Agility","Suffragium","Aspersio","Weapon Perfection",
"Over Thrust","Weapon CP","Shield CP","Armor CP","Helm CP","Concentration",
"Assumptio","Kaizel","Kaahi","Kaupe","True Sight","Wind Walk","Poem of Bragis";
setarray .buffcode[0],30,32,36,37,44,45,72,73,74,75,110,115,147,148,149,120,121,175;
setarray .bufflevl[0],10,10,3,5,5,5,5,5,5,5,5,5,7,7,3,10,10,10;
if($gmconfiguration == 0) setarray $buffconf[0],1,1,0,0,0,0,0,0,0,0,0,0,0,0,0;
// ---------------------------------------------------------------------
// -- Basic Configuration --
// This is the basic configuration
// ---------------------------------------------------------------------
set .npcname$,"[ ^3a68ffHealer^000000 ]";
set .gmlevel,99; // Min GM Level to do in-game configuration (See conf/groups.conf for group_id's lists)
set .buffduration,5; // Buff Duration in minute
end;
// ---------------------------------------------------------------------
hscript:
// The script starts here...
if(getgmlevel() >= .gmlevel) {
mes .npcname$;
mes "Good day, GM "+strcharinfo(0)+".";
mes "What kind of change you want to make today ?";
menu "~ Add / Remove a Buff",h_addbuff,
"~ Set all back to Default",h_default,
"~ Turn on all the buff",h_all,
"~ Give me Heal and Buff",h_skip;
h_addbuff:
do {
set @bufflist$,"";
set @finish,0;
for (set @i,0; @i <= (getarraysize(.buffstr$)-1); set @i,@i+1) {
if ($buffconf[@i] == 0) set @color$,"^FF0000";
if ($buffconf[@i] == 1) set @color$,"^49b01c";
set @bufflist$,""+@bufflist$+":"+@color$+.buffstr$[@i]+"^000000";
}
set @bufflist$,delchar(@bufflist$, 0);
next;
set @skillon,(select(@bufflist$) - 1);
if ($buffconf[@skillon] == 0) {
set $buffconf[@skillon],1;
set $gmconfiguration,1;
} else {
set $buffconf[@skillon],0;
set $gmconfiguration,1;
}
next;
mes .npcname$;
if ($buffconf[@skillon] == 1) mes "You have added ^3c9cff"+.buffstr$[@skillon]+"^000000.";
if ($buffconf[@skillon] == 0) mes "You have removed ^ff0000"+.buffstr$[@skillon]+"^000000.";
mes "Do you want to continue ?";
if(select("Yes:No")==2) set @finish,1;
}
while (@finish == 0);
end;
h_default:
next;
mes .npcname$;
mes "Are you sure to revert all the changes back to default ?";
mes "^ff0000NOTE : THIS WILL REMOVE ALL YOUR PREVIOUS CONFIGURATION.";
if(select("No:Yes") == 1) end;
set $gmconfiguration,0;
setarray $buffconf[0],1,1;
end;
h_all:
next;
mes .npcname$;
mes "Are you sure to turn ON all the Buff ?";
if(select("No:Yes") == 1) end;
set $gmconfiguration,1;
for(set @i,0; @i <= (getarraysize(.buffcode)-1); set @i,@i+1) setarray $buffconf[@i],1;
end;
h_skip:
}
for( set @i,0; @i <= (getarraysize(.buffcode)-1); set @i,@i+1 ) {
if ($buffconf[@i] == 1) {
sc_start .buffcode[@i],.buffduration*60*1000,.bufflevl[@i];
}
}
percentheal 100,100;
end;
}
Question
ayennnnnnn
hi can someone edit this script with food buffs on it like +10agi +10vit +10int +10dex +10str
and add a waitingroom on it. cause im putting this but not working.
HERE's the script :
Link to comment
Share on other sites
2 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.