홀,짝. 주사위 , 소막 겜블 소스
에바팩소스 리니지게임정보 커뮤니티 팝존 http://popzone.co.kr
정불에 있는걸 수정해서 가져왔습니다 ..
우선 첨부한 4개 파일을 src\l1j\server\GameSystem 에 넣어주세요.
이제 java 넣어주실 부분입니다 ....
===========================================================
소스
검색
추가
=============================================================
L1Trade.java
import l1j.server.GameSystem.Akduk1GameSystem;
import l1j.server.GameSystem.Akduk2GameSystem;
import l1j.server.GameSystem.Akduk3GameSystem;
import l1j.server.GameSystem.Akduk4GameSystem;
new BuffSystem(tradenpc, pc); //아래추가
if (tradenpc.getNpcTemplate().get_npcId() == 41922) { // 주사위(딜러)
Akduk2GameSystem gambling = new Akduk2GameSystem();
gambling.Gambling(pc, pcitem.getCount());
} else if (tradenpc.getNpcTemplate().get_npcId() == 41923) {
Akduk4GameSystem gambling = new Akduk4GameSystem();
gambling.Gambling(pc, pcitem.getCount());
} else if (tradenpc.getNpcTemplate().get_npcId() == 41918) { // 소막(딜러)
Akduk1GameSystem gambling = new Akduk1GameSystem();
gambling.Gambling(pc, pcitem.getCount());
} else if (tradenpc.getNpcTemplate().get_npcId() == 41919) { // 소막2(딜러)
Akduk3GameSystem gambling = new Akduk3GameSystem();
gambling.Gambling(pc, pcitem.getCount());
}
C_Chat.java
import l1j.server.GameSystem.Akduk1GameSystem;
import l1j.server.GameSystem.Akduk2GameSystem;
import l1j.server.GameSystem.Akduk3GameSystem;
import l1j.server.GameSystem.Akduk4GameSystem;
if (chatText.startsWith("$")) { // 월드채팅 <=끝나는부분아래추가
/** 주사위 */
Akduk2GameSystem gam = new Akduk2GameSystem(); //주사위
if (pc.isGambling()) {
if (chatText.startsWith("홀")) {
gam.Gambling2(pc, chatText, 1);
return;
} else if (chatText.startsWith("짝")) {
gam.Gambling2(pc, chatText, 2);
return;
} else if (chatText.startsWith("1")) {
gam.Gambling2(pc, chatText, 3);
return;
} else if (chatText.startsWith("2")) {
gam.Gambling2(pc, chatText, 4);
return;
} else if (chatText.startsWith("3")) {
gam.Gambling2(pc, chatText, 5);
return;
} else if (chatText.startsWith("4")) {
gam.Gambling2(pc, chatText, 6);
return;
} else if (chatText.startsWith("5")) {
gam.Gambling2(pc, chatText, 7);
return;
} else if (chatText.startsWith("6")) {
gam.Gambling2(pc, chatText, 8);
return;
}
}
/** 묵 찌 빠 */
if (pc.isGambling4()) {
Akduk4GameSystem gam2 = new Akduk4GameSystem();
if (chatText.startsWith("묵")) {
gam2.Gambling4(pc, chatText, 1);
return;
} else if (chatText.startsWith("찌")) {
gam2.Gambling4(pc, chatText, 2);
return;
} else if (chatText.startsWith("빠")) {
gam2.Gambling4(pc, chatText, 3);
return;
}
}
if (pc.isGambling1()) { // 소막 큰버전
Akduk3GameSystem gam1 = new Akduk3GameSystem();
if (chatText.startsWith("오크전사")) {
gam1.Gambling1(pc, chatText, 1);
return;
} else if (chatText.startsWith("스파토이")) {
gam1.Gambling1(pc, chatText, 2);
return;
} else if (chatText.startsWith("멧돼지")) {
gam1.Gambling1(pc, chatText, 3);
return;
} else if (chatText.startsWith("슬라임")) {
gam1.Gambling1(pc, chatText, 4);
return;
} else if (chatText.startsWith("해골")) {
gam1.Gambling1(pc, chatText, 5);
return;
} else if (chatText.startsWith("늑대인간")) {
gam1.Gambling1(pc, chatText, 6);
return;
} else if (chatText.startsWith("버그베어")) {
gam1.Gambling1(pc, chatText, 7);
return;
} else if (chatText.startsWith("장로")) {
gam1.Gambling1(pc, chatText, 8);
return;
} else if (chatText.startsWith("괴물눈")) {
gam1.Gambling1(pc, chatText, 9);
return;
} else if (chatText.startsWith("난쟁이")) { //난쟁이
gam1.Gambling1(pc, chatText, 10);
return;
} else if (chatText.startsWith("오크")) {
gam1.Gambling1(pc, chatText, 11);
return;
} else if (chatText.startsWith("라이칸")) {
gam1.Gambling1(pc, chatText, 12);
return;
} else if (chatText.startsWith("개구리")) {
gam1.Gambling1(pc, chatText, 13);
return;
} else if (chatText.startsWith("늑대")) {
gam1.Gambling1(pc, chatText, 14);
return;
} else if (chatText.startsWith("가스트")) {
gam1.Gambling1(pc, chatText, 15);
return;
} else if (chatText.startsWith("좀비")) {
gam1.Gambling1(pc, chatText, 16);
return;
} else if (chatText.startsWith("리자드맨")) {
gam1.Gambling1(pc, chatText, 17);
return;
} else if (chatText.startsWith("도베르만")) {
gam1.Gambling1(pc, chatText, 18);
return;
}
}
if (pc.isGambling3()) { // 소막
Akduk1GameSystem gam1 = new Akduk1GameSystem();
if (chatText.startsWith("오크전사")) {
gam1.Gambling3(pc, chatText, 1);
return;
} else if (chatText.startsWith("스파토이")) {
gam1.Gambling3(pc, chatText, 2);
return;
} else if (chatText.startsWith("멧돼지")) {
gam1.Gambling3(pc, chatText, 3);
return;
} else if (chatText.startsWith("슬라임")) {
gam1.Gambling3(pc, chatText, 4);
return;
} else if (chatText.startsWith("해골")) {
gam1.Gambling3(pc, chatText, 5);
return;
} else if (chatText.startsWith("늑대인간")) {
gam1.Gambling3(pc, chatText, 6);
return;
} else if (chatText.startsWith("버그베어")) {
gam1.Gambling3(pc, chatText, 7);
return;
} else if (chatText.startsWith("장로")) {
gam1.Gambling3(pc, chatText, 8);
return;
} else if (chatText.startsWith("괴물눈")) {
gam1.Gambling3(pc, chatText, 9);
return;
}
}
L1PcInstance.java
_oldChatTimeInMillis = 0; //두개있는데 마지막거 아래쪽에 추가
/** 소막 및 주사위 게임 */
//by 악덕
private boolean _isGambling = false;
public boolean isGambling() {
return _isGambling;
}
public void setGambling(boolean flag) {
_isGambling = flag;
}
private int _gamblingmoney = 0;
public int getGamblingMoney() {
return _gamblingmoney;
}
public void setGamblingMoney(int i) {
_gamblingmoney = i;
}
////##########겜블 소막 주사위 묵찌빠############
private boolean _isGambling1 = false;
public boolean isGambling1() {
return _isGambling1;
}
public void setGambling1(boolean flag) {
_isGambling1 = flag;
}
private int _gamblingmoney1 = 0;
public int getGamblingMoney1() {
return _gamblingmoney1;
}
public void setGamblingMoney1(int i) {
_gamblingmoney1 = i;
}
////##########겜블 소막 주사위 묵찌빠############
private boolean _isGambling3 = false;
public boolean isGambling3() {
return _isGambling3;
}
public void setGambling3(boolean flag) {
_isGambling3 = flag;
}
private int _gamblingmoney3 = 0;
public int getGamblingMoney3() {
return _gamblingmoney3;
}
public void setGamblingMoney3(int i) {
_gamblingmoney3 = i;
}
////##########겜블 소막 주사위 묵찌빠############
private boolean _isGambling4 = false;
public boolean isGambling4() {
return _isGambling4;
}
public void setGambling4(boolean flag) {
_isGambling4 = flag;
}
private int _gamblingmoney4 = 0;
public int getGamblingMoney4() {
return _gamblingmoney4;
}
public void setGamblingMoney4(int i) {
_gamblingmoney4 = i;
}
/** 소막 및 주사위 및 묵 찌 빠 게임 */
L1BuffNpcInstance.java
public L1BuffNpcInstance(L1Npc template) {
super(template);
if (this.getNpcId() == 4206004) {
TradeTimer treadtimer = new TradeTimer(this);
treadtimer.begin();
} //아래추가
if(this.getNpcId() == 41922){ // 주사위 딜러
TradeTimer treadtimer = new TradeTimer(this);
treadtimer.begin();
}
if(this.getNpcId() == 41923){ // 묵 찌 빠
TradeTimer treadtimer = new TradeTimer(this);
treadtimer.begin();
}
if(this.getNpcId() == 41918){ // 소막1
TradeTimer treadtimer = new TradeTimer(this);
treadtimer.begin();
}
if(this.getNpcId() == 41919){ // 소막2
TradeTimer treadtimer = new TradeTimer(this);
treadtimer.begin();
}
}
==================================================================
DB(나비캣) 추가 하셔야 할부분입니다.
NPC 테이블 에 추가 해주시면됩니다 .
41922 주사위딜러 주사위딜러^1,000,000 ~ 3,000,000 주사위 L1BuffNpc 61 0 0 0 0 0 0 0 0 0 0 0 -500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
41923 묵찌빠딜러 묵찌빠딜러^1,000,000 ~ 3,000,000 묵찌빠 L1BuffNpc 1186 0 0 0 0 0 0 0 0 0 0 0 -500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
41918 소막딜러 소막딜러^1,000,000 ~ 3,000,000 소막1 L1BuffNpc 1 0 0 0 0 0 0 0 0 0 0 0 -500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
41919 소막딜러 소막딜러^1,000,000 ~ 3,000,000 소막2 L1BuffNpc 1 0 0 0 0 0 0 0 0 0 0 0 -500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
41920 소막 도우미 도우미 소막1 L1BuffNpc 37 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
41921 소막 도우미 도우미 소막2 L1BuffNpc 37 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81245 오크전사 $266 소막게임몹 L1Effect 3864 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81246 스파토이 $318 소막게임몹 L1Effect 145 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81247 멧돼지 $931 소막게임몹 L1Effect 979 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81248 슬라임 $8 소막게임몹 L1Effect 31 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81249 해골 $7 소막게임몹 L1Effect 30 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81250 늑대인간 $18 소막게임몹 L1Effect 1110 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81251 버그베어 $325 소막게임몹 L1Effect 152 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81252 장로 $19 소막게임몹 L1Effect 32 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81253 괴물 눈 $6 소막게임몹 L1Effect 29 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81254 난쟁이 $58 소막게임몹 L1Effect 54 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81255 오크 $59 소막게임몹 L1Effect 56 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81256 라이칸스로프 $990 소막게임몹 L1Effect 1108 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81257 개구리 $256 소막게임몹 L1Effect 55 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81258 늑대 $268 소막게임몹 L1Effect 96 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81259 가스트 $504 소막게임몹 L1Effect 255 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81260 좀비 $57 소막게임몹 L1Effect 52 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81261 리자드맨 $1174 소막게임몹 L1Effect 1173 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
81262 도베르만 $905 소막게임몹 L1Effect 931 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0
출처 악덕님

댓글3
- 1
로스트사가 님의 최근 댓글
감사합니다. 2019 06.13 감사합니다. 2019 06.12 감사합니다. 2019 05.03 감사합니다. 2019 05.03 감사합니다. 2018 03.11