Jump to content
  • 0

unlockable warpra


lllaaazzz

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  10/14/17
  • Last Seen:  

hi i was wondering if someone could tell me how to make it so that the Cases for this :

switch(select("prontera", "alberta", "goldroom", "Other")) {

        case 1:
                if (#alberta_plat == 1) {
                    warp("alberta", 49, 241);
                    end;
                }
                if (#alberta_plat == 0) {
                    next;
                    mes "Sorry but you did not unlock that platform yet";                                        
                    close;
                    end;
                }

}

have (unlocked GREEN) and (locked RED) next to their options in the npc windows? . . .im not using quest warper, and i have it set so when you pick your job all warps are set to 0 and go to 1 on unlock(for the sake of any flame, its cause theres like 1/4 the warps)

 

ive seen it before but no idea how to do it from scratch... please ty..... 

Edited by lllaaazzz
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

i would tell you how but you must know that there is more dynamic ways to do that

so this is the code

	switch(select("prontera", "alberta " + ((!#alberta_plat)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000"), "goldroom", "Other")) {
		case 1:
			if (#alberta_plat == 1) {
				warp("alberta", 49, 241);
				end;
			}
			if (#alberta_plat == 0) {
				next;
				mes "Sorry but you did not unlock that platform yet";                                        
				close;
				end;
			}
			
	}

you see i added this line next to the option

((!#alberta_plat)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000")

this mean

if(!#alberta_plat){	//#alberta_plat == 0
	//the option will be "alberta ^E82D0B[Lucked]^000000"
}else{	//#alberta_plat == 1 or more than 1
	//the option will be "alberta ^05FF00[UnLucked]^000000"
}

you can do this too

((#alberta_plat == 0)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000")

 

and for the color code use this

https://color.adobe.com/create/color-wheel/

Edited by sader1992
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

also moved to the right section

Link to comment
Share on other sites

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.

×
×
  • Create New...