Jump to content
  • 0

add temporary stat to GM when on specific map


Question

Posted


-    script    gmstats    -1,{
   OnPCLoadMapEvent:
       if(getcharid(3)>=2000000 && getcharid(3)<=3000000){
           getmapxy .@map$,.@x,.@y,0;

           mes .@map$;
           mes getcharid(3);
           mes strcharinfo(0);

           if(.@map$=="quiz_02"){
               attachrid(getcharid(3,strcharinfo(0)));
               bonus bAllStats,30000;
           }

           close;
       }
}

quiz_02    mapflag    loadevent

how do you do this? I'am trying but it does not work, I'm just guessing.

5 answers to this question

Recommended Posts

Posted (edited)

-	script	gmstats	-1,{
if(getgmlevel() > 50) {	
OnPCLoadMapEvent:
		getmapxy .@map$,.@x,.@y,0;

		mes .@map$;
		mes getcharid(3);
		mes strcharinfo(0);
		bonus bAllStats,30000;
	   close;
		} else {
		mes .@map$;
		mes getcharid(3);
		mes strcharinfo(0);
		close;
	}
}

quiz_02	mapflag	loadevent

Try This.

Edited by mnjfx
Posted (edited)

rathena doesn't use getgmlevel

use getgroupid

I suggest using the one below if you're only intending to use this on 1 map.

Give this one a try:

- script gmstats -1,{
OnPcLoadMapEvent:
if(strcharinfo(3) == "prontera" && getgroupid >= 99){ // Change map to what ever it is, probably your quiz
bonus bAllStats,30000;
}
end;
}
//Change map below else the above won't work
prontera mapflag loadevent

Edited by Nameless2you
Posted

@mjfx

@remix

@me

our stuff does not work xD

-    script    test1    -1,{
   OnPCLoadMapEvent:
   bonus bAllStats,30000;
   mes "a";
   close;
}
quiz_02    mapflag    loadevent

this aint even working at the first place xD~,

please somebody show us

Posted

try this..quick and messy ~

- script Sample -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "quiz_02"  && getgmlevel() > 60 ){
statusup2 bStr,30000;
statusup2 bAgi,30000;
statusup2 bVit,30000;
statusup2 bInt,30000;
statusup2 bDex,30000;
statusup2 bLuk,30000;
while( strcharinfo(3) == "quiz_02" ) sleep2 1000;
statusup2 bStr,-30000;
statusup2 bAgi,-30000;
statusup2 bVit,-30000;
statusup2 bInt,-30000;
statusup2 bDex,-30000;
statusup2 bLuk,-30000;
}
end;
}
quiz_02 mapflag loadevent

anyway..there still other alternate way like...give a status bonus through items stuff effect

like

sc_start SC_STRFOOD, 1200000, 30000;
sc_start SC_AGIFOOD, 1200000, 30000;
sc_start SC_INTFOOD, 1200000, 30000;
sc_start SC_DEXFOOD, 1200000, 30000;
sc_start SC_LUKFOOD, 1200000, 30000;
sc_start SC_VITFOOD, 1200000, 30000;

Posted (edited)

thanks emistry, its wurking. ive changed somethings though. thanks again.

heres mine, based on emistry's

-    script    gmstats    -1,{
   OnPCLoadMapEvent:
       if(getgmlevel()>=40){
           if( strcharinfo(3)=="quiz_01" ||
               strcharinfo(3)=="quiz_02" ||
               strcharinfo(3)=="payg_cas04" ||
               strcharinfo(3)=="prtg_cas01" ||
               strcharinfo(3)=="schg_cas03"){

               sc_start SC_STRFOOD, 3600000, 30000;
               sc_start SC_AGIFOOD, 3600000, 30000;
               sc_start SC_INTFOOD, 3600000, 30000;
               sc_start SC_DEXFOOD, 3600000, 30000;
               sc_start SC_LUKFOOD, 3600000, 30000;
               sc_start SC_VITFOOD, 3600000, 30000;

               while(1){
                   sleep2 2000;
                   if(!(strcharinfo(3)=="quiz_01" ||
                       strcharinfo(3)=="quiz_02" ||
                       strcharinfo(3)=="payg_cas04" ||
                       strcharinfo(3)=="prtg_cas01" ||
                       strcharinfo(3)=="schg_cas03")){
                           sc_end SC_STRFOOD;
                           sc_end SC_AGIFOOD;
                           sc_end SC_INTFOOD;
                           sc_end SC_DEXFOOD;
                           sc_end SC_LUKFOOD;
                           sc_end SC_VITFOOD;
                           break;
                       }
               }
           }    
       }

       end;
}

Edited by mleo1

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...