Jump to content

Recommended Posts

Posted

how can i set a player limit? for now it starts when 1 player has joined, but i want it to start only if 4 players are registred, or set a time limit, like if it will start after 5 minutes when a gm has started it

Posted (edited)

how can i set a player limit? for now it starts when 1 player has joined, but i want it to start only if 4 players are registred, or set a time limit, like if it will start after 5 minutes when a gm has started it

'OnStart:' label

Edited by goddameit
Posted

OnStart:
set .game,1;
set .join,0;
set .ctf_tn1,0;
set .ctf_tn2,0;
set .ctf_tp1,0;
set .ctf_tp2,0;
sleep2(10000);
set .game,2;
setmapflag "prt_maze02",mf_pvp;
announce "[CTF]!!!",0;
for(set .@io,0;.@io<=.join;set .@io,.@io+1)
{
 if(attachrid(getd(".join_j"+.@io)))
 {
  warp "prt_maze02",bx(@ctf_tid*3),by(@ctf_tid*3);
 }
}

how can i change the player limit there? like only warp when 4 players joined

and why i cant attack my own guild member on this map?

Posted (edited)

@Nokia

how can i change the player limit there? like only warp when 4 players joined

sleep2(10000);
if(.join<4)end;//add

and why i cant attack my own guild member on this map?

add mapflag pvp_noguild

Edited by goddameit
Posted

this is script i've requested 6 months ago at eathena.ws, my pc hang so this script gone. but here once again godameit share to us :) thank you so much.

suggestion:

- add botcheck when register to play ctf

- add party organize ( when player enter the ctf, he is automatically join party etc blue team)

- add NPC reward.(when the party win the round e.g blue team won, all party warp to npc reward and got reward)

  • Upvote 2
Posted

this is script i've requested 6 months ago at eathena.ws, my pc hang so this script gone. but here once again godameit share to us :) thank you so much.

suggestion:

- add botcheck when register to play ctf

- add party organize ( when player enter the ctf, he is automatically join party etc blue team)

- add NPC reward.(when the party win the round e.g blue team won, all party warp to npc reward and got reward)

1. later

2. source code.

3. already done.

Posted (edited)

i try that ..but it says [CTF]!! and nothng happens

what are you trying to do ?

---

What I done is full in the video, watch it.

Edited by goddameit
Posted

i try that ..but it says [CTF]!! and nothng happens

what are you trying to do ?

---

What I done is full in the video, watch it.

i click the Npc but ..NPC broadcasting [CTF]!! only nothing happens. .

yeah i watch it =D

Posted (edited)

i try that ..but it says [CTF]!! and nothng happens

what are you trying to do ?

---

What I done is full in the video, watch it.

i click the Npc but ..NPC broadcasting [CTF]!! only nothing happens. .

yeah i watch it =D

test & research what happen on your program.

announce "[CTF]!!!",0;
for(set .@io,0;.@io<=.join;set .@io,.@io+1)
{
if(attachrid(getd(".join_j"+.@io)))
{
warp "prt_maze02",bx(@ctf_tid*3),by(@ctf_tid*3);
}
}
initnpctimer;
initnpctimer "CTF-Point#1";
initnpctimer "CTF-Point#2";
end;

I can't help you cause every time I test it's always fine

and I don't see what logic is wrong(activate the event, record AID, and warp them,...)

hope you can find what happen on your server and tell me in where.

Edited by goddameit
Posted
compile ur server with higher eventqueue.

how ? i know compile... edit where only start compile??

delete , stop or delay other event.

don't ask how, we don't know what event your server will be starting to work in that time and what is used for

  • Upvote 1
Posted
compile ur server with higher eventqueue.

how ? i know compile... edit where only start compile??

compile your server with higher event queue at src/map/map.h

#define MAX_EVENTQUEUE 2

  • Upvote 1
Posted (edited)

Look at this. .

I remove what script you said to remove. .but still ..

and i put it back the script. .

and there NPC keep telling CTF!! but nothng happen even warp me. .in a few mins NPC announce [CTF] GAME OVER. .

help T_T

post-4529-0-17659100-1340807698_thumb.jpg

Edited by kaye17

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