Jump to content
Masuka00

5 Scripts please

Recommended Posts

Hi guys i wanted to know if is posible this 5 scripts

 

1. GM teleport all players (example: EVENT).

2. Teleport all party members to a selected map, if party leader goes all team goes.

3. Mob apear in map 1 every week or another day with out GM command.

4. NPC that teleport players to map, but the option will be activated every week or semithing.

 

and the last one

 

5. Its posible to make a maze and 20 mobs will be there, but if you kill them they will not respawn and when you kill the 20 mobs you recibe bouns exp and you get teleported to the maibn city if you do this on solo or party

 

I wanna know if is posible

 

Thanks :D


☠️🏴‍☠️💀ǤØĐ βŁ€ŞŞ ƤƗŘΔĆ¥💀🏴‍☠️☠️

Share this post


Link to post
Share on other sites

3- Mob respawn per week

Make a extension .lua put inside this

 

function EventBoss(role, freq, time)

	    local week = tonumber(os.date("%w")) --Day

	    local Event_Boss = CreateCha(####, posX, posY, 160, 150)

	    if week == 6 then --Saturday

	    SetChaLifeTime(Event_Boss,97000000)

	    SystemNotice("The Event Boss is Respawn all go to Kill for win prize!!")

	    end

	end

Hook:AddPostHook("cha_timer",EventBoss)

 

Edited by Ximboliex
  • Like 1

xbx3.png

Share this post


Link to post
Share on other sites
37 minutes ago, Ximboliex said:

3- Mob respawn per week

Make a extension .lua put inside this

 


function EventBoss(role, freq, time)

	    local week = tonumber(os.date("%w")) --Day

	    local Event_Boss = CreateCha(####, posX, posY, 160, 150)

	    if week == 6 then --Saturday

	    SetChaLifeTime(Event_Boss,97000000)

	    SystemNotice("The Event Boss is Respawn all go to Kill for win prize!!")

	    end

	end

Hook:AddPostHook("cha_timer",EventBoss)

 

 

@Ximboliex ok i saw were the numbre of character goes but were to put map to apear???


☠️🏴‍☠️💀ǤØĐ βŁ€ŞŞ ƤƗŘΔĆ¥💀🏴‍☠️☠️

Share this post


Link to post
Share on other sites

Better

 

place this inside of map that want that appears the boss.

Ex: sees to the folder of garner search ctrl.lua inside of ctrl.lua search the function map_copy_run_garner, put this inside of that function ..

    local week = tonumber(os.date("%w"))

	--Day    local Event_Boss = CreateCha(####, posX, posY, 160, 150)--- 150 is time respawn

	    if week == 6 then

	--Saturday

	    SetChaLifeTime(Event_Boss,97000000)

	    SystemNotice("The Event Boss is Respawn all go to Kill for win prize!!")

	    end
Edited by Ximboliex
  • Like 1

xbx3.png

Share this post


Link to post
Share on other sites

5- if kill all mobs in map teleporte

Put this inside the map inside map_copy_run


function map_copy_run_eventmap( map_copy )

	for mobs = 1300,1320,1 do
--here covers 20 mobs  ***recalls that go here id the mobs who have to go in numerical order function testify example creates the new mobs 1007.1008 here covers just 2 mobs.

	 	if CheckMonsterDead( mobs ) == true then
			MoveCity("Argent City")
		end
end

 

for that the mobs not revive when the kill only put 7 hours or more of respawn in seconds.

 

 

Edited by Ximboliex
  • Like 1

xbx3.png

Share this post


Link to post
Share on other sites
13 hours ago, Covadola said:

1. GM teleport all players (example: EVENT).

I think Sultan has an extension just for this. But there are problems with concurrency.
Ideally, every player is stored in a "GetPlayerByName" table, and a loop is made to teleport everyone.

13 hours ago, Covadola said:

2. Teleport all party members to a selected map, if party leader goes all team goes.

why you not check tribulation or lonetower scripts?

if IsTeamLeader(role) == 1 then
    local team = {role,GetTeamCha(role, 0),GetTeamCha(role, 1),GetTeamCha(role, 2),GetTeamCha(role, 3)};
    for i = 1, table.getn(team) do
        MoveCity(team[i], 'LoneInstance 1', map_copy);
    end
end

13 hours ago, Covadola said:

4. NPC that teleport players to map, but the option will be activated every week or semithing.

why you not check tribulation or lonetower scripts?

LoneInst.conf     = {
openday        = {0,1,2,3,4,5,6},                            -- days that are open
openhour     = {0,1,2,3,9,10,11,18,21},                    -- hours that are open
}
    TowerOpen = {Day = {}, Hour = {}}
    LoneInst.SetOpen = function()
        for i,v in pairs(LoneInst.conf['openday']) do TowerOpen.Day[v] = true; end
        for i,v in pairs(LoneInst.conf['openhour']) do TowerOpen.Hour[v] = true; end
    end

    LoneInst.SetOpen();

    LoneInst.IsOpen = function()
        return TowerOpen.Hour[tonumber(os.date('%H'))] and TowerOpen.Day[tonumber(os.date('%w'))];
    end


NPC Script as a condition: LoneInst.IsOpen()
 

13 hours ago, Covadola said:

5. Its posible to make a maze and 20 mobs will be there, but if you kill them they will not respawn and when you kill the 20 mobs you recibe bouns exp and you get teleported to the maibn city if you do this on solo or party

why you not check tribulation or lonetower scripts?
LoneInst.spawn = function(map_copy) -- spawns monster
GetExp_PKM = function(dead, atk) -- counts monster being killed
 

  • Like 1

kong.png

a2.png

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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