Jump to content

  •  

snowkeg

Member Since 14 May 2016
Offline Last Active May 20 2017 08:06 PM
-----

Topics I've Started

clan instance

30 March 2017 - 07:37 AM

Hi all,

I want to create a instance for clan only which only clan number can go in without limited before instance timeout.

Can anyone teach me how to do the instance creation(for clan only) and the entry?

 


How to use string as a value in script?

23 February 2017 - 07:35 AM

Hi, I am working on a seller npc needs 4 different type(string) 

The NPC can show the .@randType$ in message board if I use mes .@randTypes$

But actually I want it to be a value I can use in script,

the console shows sciprt:getarraysie: not a variable 

Can anyone teach me how to random a string and can use it as a value?

 

prontera,50,50,3	script	seller	50,{
	set .@randType$,rand(1,2);
        if(.@randType$ = 1){
           set .@randType$, "$@type1";
        }else ;
        set .@randType$, "$@type2";
	getitem .@randType$[set(.@i,rand(getarraysize(".@randType$")))], 1;
	close;

OnInit:
	setarray $@type1,501,502,503,504,505;
        setarray $@type2,506,507,508,509,511;