
נכתב במקור על ידי
ItsMySTyle
יש לי בקשה אשמח אם תמלעו לי אותם
ריפאק:Zombie
פירוט על הNPC: שכשלוחצים עליו הוא ירשום Hey name Do You Have This Ok i Give You EXP
ואם אין אז Sorry You Dont Have This Try Again Later
IDים:4031568 זה מה שהוא יבקש
הערות : תודה רבה בינתיים
להבא אני מבקשת לפרט קצת יותר.
הנחתי שהוא אמור גם לתת EXP אם יש, אז הוספתי שהוא יתן 1, אם אתה רוצה תשנה את ה1.
קוד PHP:
/* Created by SapiRxD from the iAtraf NPC Creation Factory */
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) {
cm.sendYesNo("Hey #h # do you have #z4031568#?");
} else if (status == 1){
if (cm.haveItem(4031568, 1)){
cm.sendOk("Ok i'll give you some exp");
cm.gainItem(4031568, -1);
cm.gainExp(1);
cm.dispose();
}else{
cm.sendOk("Sorry you dont have this try again later");
cm.dispose();
}
}
}
להבא, קצת סבלנות אחרת לא יכינו לך. (תקרא את החוקים של המפעל).
קוד PHP:
/* Created by SapiRxD from the iAtraf NPC Creation Factory */
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) {
if (cm.isLeader()){
cm.sendYesNo("Do you have 4 party members?");
}else{
cm.sendOk("You are not leader or not in a party.");
cm.dispose();
}
} else if (status == 1){
var party = cm.getParty().getMembers();
if (party.size() > 3){
cm.warpParty(123456789);
cm.dispose();
}else {
cm.sendOk("You dont have 4 party members.");
cm.dispose();
}
}
}
קוד PHP:
/* Created by SapiRxD from the iAtraf NPC Creation Factory */
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) {
if (cm.isLeader()){
if(cm.haveItem(4000223, 1)){
cm.gainItem(4000223, -1);
cm.warpParty(123456789);
}else{
cm.sendOk("you dont have the item.");
}
}else{
cm.sendOk("You are not the leader");
cm.dispose();
}
}
}