Jump to content
  • 0

buffs for own castle NPC


Question

7 answers to this question

Recommended Posts

Posted

Try :

-    script    Sample    -1,{
    set .guild_id, getcastledata("prtg_cas01", 1);
    
    OnPCLoadMapEvent:
        getmapxy(.@map$, .@x, .@y, 0);
        if ( .@map$ == "prtg_cas01" && .guild_id == getcharid(2) ) {
            sc_start SC_ASPDPOTION2,360000,0;
            sc_start SC_STRFood,360000,10;
            sc_start SC_AGIFood,360000,10;
            sc_start SC_VITFood,360000,10;
            sc_start SC_INTFood,360000,10;
            sc_start SC_DEXFood,360000,10;
            sc_start SC_LUKFood,360000,10;
            sc_start SC_HitFood,1200000,30;
            sc_start SC_FleeFood,1200000,30;
            sc_start SC_BATKFood,1200000,10;
            sc_start SC_MATKFood,120000,10;
            specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
            specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
            // add all buffs here
        }
        end;
}
prtg_cas01    mapflag    loadevent
Posted (edited)

something like this?

prontera.gat,150,184,5 script Healer#h1-1::Healer 834,{

skilleffect 34,0; sc_start SC_BLESSING,600000,10;
sc_start SC_INCREASEAGI,600000,10;
sc_start SC_ANGELUS,600000,10;
sc_start SC_MAGNIFICAT,600000,5;
sc_start SC_GLORIA,600000,5;
sc_start SC_SUFFRAGIUM,600000,3;
sc_end sc_curse;
sc_end sc_silence;
sc_end sc_confusion;
sc_end sc_blind;
sc_end sc_bleeding;
sc_end sc_poison;
sc_end sc_hallucination;
sc_end sc_stripweapon;
sc_end sc_striparmor;
sc_end sc_striphelm;
sc_end sc_stripshield;
sc_end sc_orcish;
percentheal 100,100;

if (getcastledata( "prtg_cas01", 1) != getcharid(2) && getcastledata( "prtg_cas02", 1) != getcharid(2)){
sc_start SC_ASSUMPTIO,100000,5;
sc_start SC_IMPOSITIO,600000,5;
end;
}
}

 

so if u own valkyrie 1 or 2 it will give bonus asumptio & impo

dont forget to use <tab> on npc position

Edited by Capuche
BBCode
Posted

for patskie script

-	script	Sample	-1,{
OnInit:
set .guild_id, getcastledata("prtg_cas01", 1);
end;

OnPCLoadMapEvent:
	if ( strcharinfo(3) == "prtg_cas01" && .guild_id == getcharid(2) ){
		sc_start SC_ASPDPOTION2,360000,0;
		sc_start SC_STRFood,360000,10;
		sc_start SC_AGIFood,360000,10;
		sc_start SC_VITFood,360000,10;
		sc_start SC_INTFood,360000,10;
		sc_start SC_DEXFood,360000,10;
		sc_start SC_LUKFood,360000,10;
		sc_start SC_HitFood,1200000,30;
		sc_start SC_FleeFood,1200000,30;
		sc_start SC_BATKFood,1200000,10;
		sc_start SC_MATKFood,120000,10;
		specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
		specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
		// add all buffs here
	}
	end;
}	
prtg_cas01	mapflag	loadevent	

 

for chickz

prontera.gat,150,184,5 script Healer#h1-1::Healer 834,{

skilleffect 34,0; sc_start SC_BLESSING,600000,10;
sc_start SC_INCREASEAGI,600000,10;
sc_start SC_ANGELUS,600000,10;
sc_start SC_MAGNIFICAT,600000,5;
sc_start SC_GLORIA,600000,5;
sc_start SC_SUFFRAGIUM,600000,3;
sc_end sc_curse;
sc_end sc_silence;
sc_end sc_confusion;
sc_end sc_blind;
sc_end sc_bleeding;
sc_end sc_poison;
sc_end sc_hallucination;
sc_end sc_stripweapon;
sc_end sc_striparmor;
sc_end sc_striphelm;
sc_end sc_stripshield;
sc_end sc_orcish;
percentheal 100,100;

if (getcastledata( "prtg_cas01", 1) == getcharid(2) || getcastledata( "prtg_cas02", 1) == getcharid(2)){
	sc_start SC_ASSUMPTIO,100000,5;
	sc_start SC_IMPOSITIO,600000,5;
}
end;
}
Posted

I guess

if ( strcharinfo(3) == "prtg_cas01" && .guild_id == getcharid(2) ){

should be

if ( strcharinfo(3) == "prtg_cas01" && getcastledata("prtg_cas01", 1) == getcharid(2) ){

to update the castle owner

  • Upvote 1
Posted (edited)

Same not working /swt i try edit your Script.

 

this is my script edit by own :D but thx guys is work 

prontera,155,181,5	script	Sample121212121212121	757,{
if (getcharid(2) != 0 && getcharid(2) == getcastledata("prtg_cas01",1)) {
            sc_start SC_ASPDPOTION2,360000,0;
            sc_start SC_STRFood,360000,10;
            sc_start SC_AGIFood,360000,10;
            sc_start SC_VITFood,360000,10;
            sc_start SC_INTFood,360000,10;
            sc_start SC_DEXFood,360000,10;
            sc_start SC_LUKFood,360000,10;
            sc_start SC_HitFood,360000,30;
            sc_start SC_FleeFood,360000,30;
            sc_start SC_BATKFood,360000,10;
            sc_start SC_MATKFood,360000,10;
            specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,360000,10;
            specialeffect2 EF_BLESSING; sc_start SC_BLESSING,360000,10;
            // add all buffs here
        }
        end;
}
prtg_cas01	mapflag	loadevent
Edited by Jemz Hamada
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...