Server.s

Results 1 to 1 of 1
  1. #1
    Member demonlord21 is offline
    MemberRank
    Apr 2012 Join Date
    92Posts

    config Server.s


    RaGEZONE Recommends

    RaGEZONE Recommends

    well ive been looking through the files and looking for a few pointers to see if im reading this correctly or not



    Code:
    	if $Now_Hour == 20 ---this is hour that it starts if im correct
    		if $Now_Minute == 1 ----this is the min
    			BC("screen", "server", -1 , "Achinoth the Giant has appeared on realm 6 in Soulbound Crypt Level 3!") --server notice
    			BC("chat", "server", -1 , "Achinoth the Giant has appeared on realm 6 in Soulbound Crypt Level 3!")--chat notice
    			if $Line == 6 ---realm
    				$n = RandomNumber ( 0 , 4 ) ---this is something i need help with does anybody know what this is
    				if $n == 0
    					AddMonster( 30007 , 1 , 164 , 36 , 52 , 1 ) --i know this is mob spawn but after id is "1" im asuming that is is mob "count"? and the 164, 36 ,52 ,51 is maybe cords?  trying to sort this im wanting to try and get some custom events going of the sorts
    				endif
    				if $n == 1
    					AddMonster( 30007 , 1 , 164 , 74 , 60 , 1 )
    				endif
    				if $n == 2
    					AddMonster( 30007 , 1 , 164 , 84 , 98 , 1 )
    				endif
    				if $n == 3
    					AddMonster( 30007 , 1 , 164 , 33 , 97 , 1 )
    				endif
    				if $n == 4
    					AddMonster( 30007 , 1 , 164 , 55 , 63 , 1 )
    				endif
    			endif
    		endif
    	endif

    then there is this


    i get what this does sort of MapPlayerFlyToMap( 186, 475 , 68, 48 )
    but what is the SetServerVar exactly? global variable of some sort?
    Code:
    if $Now_Hour == 20
    			if $Now_Minute == 1
    				//??  55??????????   57?????????
    				SetServerVar(55,0)
    				SetServerVar(56,0)
    				SetServerVar(57,0)
    		//????????????NPC????
    				SetServerVar( 121 , 0 )
    				SetServerVar( 122 , 0 )
    				SetServerVar( 123 , 0 )
    				SetServerVar( 124 , 0 )
    				SetServerVar( 125 , 0 )
    				SetServerVar( 126 , 0 )
    				SetServerVar( 127 , 0 )
    				SetServerVar( 128 , 0 )
    				SetServerVar( 129 , 0 )
    				SetServerVar( 130 , 0 )
    				SetServerVar( 131 , 0 )
    				SetServerVar( 132 , 0 )
    				SetServerVar( 133 , 0 )
    			endif
    //			if $Now_Minute == 5
    //				BC("screen", "server", -1 , "GUID:08359000018")
    //				BC("chat", "server", -1 , "GUID:08359000019")
    //			endif
    //			if $Now_Minute == 10
    //				BC("screen", "server", -1 , "GUID:08359000020")
    //				BC("chat", "server", -1 , "GUID:08359000021")
    //			endif
    			if $Now_Minute == 13
    		//??  55??????????   57?????????
    				SetServerVar(55,0)
    				SetServerVar(56,0)
    				SetServerVar(57,0)
    		//????????????NPC????
    				SetServerVar( 121 , 0 )
    				SetServerVar( 122 , 0 )
    				SetServerVar( 123 , 0 )
    				SetServerVar( 124 , 0 )
    				SetServerVar( 125 , 0 )
    				SetServerVar( 126 , 0 )
    				SetServerVar( 127 , 0 )
    				SetServerVar( 128 , 0 )
    				SetServerVar( 129 , 0 )
    				SetServerVar( 130 , 0 )
    				SetServerVar( 131 , 0 )
    				SetServerVar( 132 , 0 )
    				SetServerVar( 133 , 0 )
    //				BC("screen", "server", -1 , "GUID:08359000022")
    //				BC("chat", "server", -1 , "GUID:08359000023")
    			endif
    		endif
    		if $Now_Hour == 20
    			if $Now_Minute == 15
    				BC("screen", "server", -1 , "The [Astral Feast] event is now open in even-numbered Realms. Talk to Outer Starway Teleporter in Atlantis to join the event.")
    				BC("chat", "server", -1 , "The [Astral Feast] event is now open in even-numbered Realms. Talk to Outer Starway Teleporter in Atlantis to join the event.")
    			endif
    		endif
    		if $Line == 2
    			call RandomMonster()
    		endif
    		if $Line == 4
    			call RandomMonster()
    		endif
    		if $Line == 6
    			call RandomMonster()
    		endif
    		if $Line == 8
    			call RandomMonster()
    		endif
    		if $Now_Hour == 21
    			if $Now_Minute == 0
    				MapPlayerFlyToMap( 186, 475 , 68, 48 )
    				SetServerVar(55,0)
    				SetServerVar(56,0)
    				SetServerVar(57,0)
    		//????????
    				SetServerVar( 121 , 0 )
    				SetServerVar( 122 , 0 )
    				SetServerVar( 123 , 0 )
    				SetServerVar( 124 , 0 )
    				SetServerVar( 125 , 0 )
    				SetServerVar( 126 , 0 )
    				SetServerVar( 127 , 0 )
    				SetServerVar( 128 , 0 )
    				SetServerVar( 129 , 0 )
    				SetServerVar( 130 , 0 )
    				SetServerVar( 131 , 0 )
    				SetServerVar( 132 , 0 )
    				SetServerVar( 133 , 0 )
    			endif
    		endif
    trying to make the double exp stuff work a bit different instead of increasing via "VIP level"
    im trying to make it work via "character level" so what i did was change $vip_level = GetPlayerInfo(-1 , "noblelevel") i changed it to (-1 , "level")
    then i changed if $vip_level == 1
    to if $vip_level >= 20 and moved up in increments of 10 levels if i read the scripts right this should work i think but its not updating? still says 300min ingame at level 50 when it should have went up any help?
    is there a way to make it refresh? not sure if i have to do that or if ou even can

    Code:
        $level = GetPlayerInfo(-1 , "level")
        //?????????,??????????????? 2010?3?25?
        $vip_level = GetPlayerInfo(-1 , "level")
        $double_exp_time = 18000
        if $vip_level >= 20
        	$double_exp_time = 18000
        endif
        if $vip_level >= 30
        	$double_exp_time = 18000
        endif
        if $vip_level >= 40
        	$double_exp_time = 18000
        endif
        if $vip_level >= 50
        	$double_exp_time = 21600
        endif
        if $vip_level >= 60
        	$double_exp_time = 25200
        endif
        if $vip_level >= 70
        	$double_exp_time = 28800
        endif
        if $vip_level >= 80
        	$double_exp_time = 32400
        endif
        if $vip_level >= 90
        	$double_exp_time = 36000
        endif
        if $vip_level >= 100
        	$double_exp_time = 40000
        endif
    
    		//10?????
    		if $level >= 10
    			if $double_days == 0
    				if $double_weeks == 0
    					SetExpAddons(-1 , $double_exp_time , 1)
    					SetPlayerVar(-1 , 3626 , $Now_Yday)                                 
    					SetPlayerVar(-1 , 3216 , $Now_Week)         			
    				endif
    			endif

    well i tried to edit my "double exp script" to do it like this but it still wont refresh it not sure how else it could be done aside from this


    player.s
    Code:
    if $vip_level < 120
    		if $vip_level >= 100
        	$double_exp_time = 40000
        endif
    	endif
    	if $vip_level < 130
    		if $vip_level >= 120
    		$double_exp_time = 50000
    	endif


    also trying to do something different on my server this is only a test script but basicly trying to make it so at level 20 30 40 and so on your name will display on screen saying you have reached level 20 and have recieved such and such item not sure it this is the right way or even close but when player hits level 20 nothing happens
    Code:
     $level = GetPlayerInfo(-1 , "level")
        //?????????,??????????????? 2010?3?25?
     
    	if $level = 20
    	$name = GetPlayerInfo("name")
    						BC("screen","name", has reached level "level")
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
        if $level = 30
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
        if $level = 40
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
        if $level = 60
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 70	
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 80
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 90	
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 100
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 120
        	AddPlayerInfo( -1, "item", 64386, 1 )
        endif
    	if $level = 130
    		AddPlayerInfo( -1, "item", 64386, 1 )
    	endif
    Last edited by demonlord21; 07-09-15 at 09:18 PM.





Advertisement