Jump to content
  • 0

OnPCKillEvent & (Compare(StrInfo


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

I have a tribe officer on my server and the player get to choose red or blue so if the player choose red, the [red] would be attach to their name like [red] django or [blue] django......

now what i want is when they decide to join a guild or create their own guild.... during woe i want to set up a getitem system based on the tribe they joined........

i need it like this ( REFER TO THE ATTACHED Thumbnail / Image )

P.S

1. It only works on payg_cas03

2. It only works when your in a guild

3. does not work if you're below level 99

4. does not work if you're a novice

5. what it does for [red] should also does for [blue]

post-3034-0-81150900-1360252243_thumb.jpg

Edited by caspa
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

Bump.................

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

sounds good!! i want this script too

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I have a tribe officer on my server and the player get to choose red or blue so if the player choose red, the [red] would be attach to their name like [red] django or [blue] django......

I like to see this script

your attachment picture doesn't make any sense

-	script	kjbfksjhfkd	-1,{
OnPCKillEvent:
if ( strcharinfo(3) == "payg_cas03" && getcharid(2) && baselevel >= 99 && class )
	getitem 501, 1;
end;
}

if without refering to the attachment picture, this is how (simple) the script looks like

I bet this is just adding a bunch of if-else

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

this is the script that i was talking about maa'm annie http://rathena.org/b...lantribe-names/

i'm using the script on post #6
 

STARTINGMAP,XXX,YYY,Z script Welcome to XXXX RO 100,{
set .@serv$,"XXX RO";// CHANGE THE SERVER NAME!!!!!
set .@n$,"^0000FF[ Welcome to "+.@serv$+" ]^000000";
set @charname$,""+strcharinfo(0)+"";
set @charid$,""+getcharid(0)+"";
if(tribechange==1) {
mes .@n$;
mes "Okay I'm going to warp you!";
next;
warp "belagio",91,41;
end;
close;
}
mes .@n$;
mes "Hello "+strcharinfo(0)+",welcome";
mes "to "+.@serv$+",have fun!";
next;
mes .@n$;
mes "You can choose a Clan,";
mes "which you want to join.";
next;
mes .@n$;
mes "Now choose the Clan,which";
mes "you want to join.";
next;
switch(select("Light Army:Dark Army")) {
case 1:
mes .@n$;
mes "Okay,changing your name!";
query_sql "UPDATE `char` SET name='[Light Army] "+ escape_sql(@charname$) + "' WHERE `char_id`="+escape_sql(@charid$)+"";
next;
mes .@n$;
mes "Your name is changed.";
mes "I'll kick you and after";
mes "You login again,I'll warp you.";
set tribechange,1;
next;
atcommand "@kick "+strcharinfo(0)+"";
end;
close;
case 2:
mes .@n$;
mes "Okay,changing your name!";
query_sql "UPDATE `char` SET name='[Dark Army] "+ escape_sql(@charname$) + "' WHERE `char_id`="+escape_sql(@charid$)+"";
next;
mes .@n$;
mes "Your name is changed.";
mes "I'll kick you and after";
mes "You login again,I'll warp you.";
set tribechange,1;
next;
atcommand "@kick "+strcharinfo(0)+"";
end;
close;
}
}
I have a tribe officer on my server and the player get to choose red or blue so if the player choose red, the [red] would be attach to their name like [red] django or [blue] django......
I like to see this scriptyour attachment picture doesn't make any sense
- script kjbfksjhfkd -1,{OnPCKillEvent:if ( strcharinfo(3) == "payg_cas03" && getcharid(2) && baselevel >= 99 && class )getitem 501, 1;end;}

if without refering to the attachment picture, this is how (simple) the script looks like
I bet this is just adding a bunch of if-else



so its basically like renaming your char but adding a specific name on the front of your name........
so after choosing what tribe..... some user creates or invites people in a guild..... and not all the member would basically be choosing the same tribe as you choose same goes as the opposing guild...... that's why if you choose the [red] tribe and your opponent is a [red] tribe also it only gives you TCG card however if you kill a [blue] tribe you'll have an additional gold coin....... so i'm basically encouraging people to make a guild and invite people with the same tribe so they'll get more bonus killing [blue] tribes if they're [red] and since GL is usually more powerful than members i'd like for the members to get more tcg or gold coins killing them...... i hope u understand my point annie.......

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

@bump

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

@bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

@bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

@bump

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