Jump to content
  • 0

Cheffenia Script Error


Topzin

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.01
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/20/24
  • Last Seen:  

Hello everyone! I'm trying add npc for cheffenia but when run rathena emulator return Uknown Syntax but i really cant see this error on my code, i need help with this i'm begginer as sever developer, i'll put my code below and add print from error;
 

//-    script    Sample    -1,{
//
//OnClock1900:
//OnClock2000:
//OnClock2100:
//for( set .@i,0; .@i < 3; set .@i,.@i + 1 ){
//    announce "O evento Cheffenia será aberto dentro de "+( 3 - .@i )+" Minutos.",0;
//    sleep 60000;
//}
//enablenpc "Cheffenia::bsw";
//announce "Evento Cheffenia Aberto.",0;
//sleep ( 30 * 60000 );
//announce "Evento Cheffenia Fechado.",0;
//OnInit:
//disablenpc "Cheffenia::bsw";
//end;
//}

prontera,129,215,6	script	Cheffenia	737,{
	set @cost, 10000000;
	
    mes "[Riss]";
    mes "Hello "+strcharinfo(0)+"";
    mes "[Riss]";
    mes "I can take you to a very mysterious place";
    next;
    mes "[Riss]";
    mes "I'm an adventurer...";
    mes "Haha~";
    next;
    mes "[Riss]";
    mes "Do you want to venture into this dark place?";
    next;
    menu "Yes of course!",yes,
        "Maybe another time..",no,
        "What i need to go?",item;

    yes:
    if(Zeny < @cost){
        mes "[Riss]";
        mes "Go away, I don't talk to people who don't have money";
        mes "Request:";
        mes "10,000,000 Zeny";
        close;
    }
    next;
    mes "[Riss]";
    mes "You are a very brave stranger!";
    mes "[Riss]";
    mes "Be safe, young boy.";
    mes "Do not be mad with me HaHaHa";
	next;
    set .@party_id, getcharid(1);
	//Debit the cost of entrance
	set Zeny, Zeny - @cost;
    close;
    warpparty "bossnia_0"+rand(1,4),rand(202,204),rand(202,204),.@party_id;
    end;

no:
    mes "[Riss]";
    mes "I always knew you were incompetent...";
    close;

item:
    mes "[Riss]";
    mes "You only need to pay this small fee:";
    mes "10,000,000 Zeny";
    mes "To work...";
	next;
    close;
}

// Warp Portals
//============================================================
//bossnia_01,207,207,0    warp    bossnia01    1,1,prontera,155,180
//bossnia_02,207,207,0    warp    bossnia02    1,1,prontera,155,180
//bossnia_03,207,207,0    warp    bossnia03    1,1,prontera,155,180
//bossnia_04,207,207,0    warp    bossnia04    1,1,prontera,155,180
 
//     monster     Spawns
//============================================================
 
//----------------------------------------------------------------------------
// bossnia_01 - Bossnia
//----------------------------------------------------------------------------
bossnia_01,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_02,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_03,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_04,0,0,0,0 monster Poring  1002,70,0,0,0;
//bossnia_01,0,0,0,0    monster    Garm    1252,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Gloom Under Night    1768,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Dark Lord    1272,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Doppelganger    1046,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Dracula    1389,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Drake    1112,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Detale    1719,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Maya    1147,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Mistress    1059,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Baphomet    1039,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Egnigem Cenia    1658,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Amon Ra    1511,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Atroce    1785,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Vesper    1685,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Eddga    1115,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Osiris    1038,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Orc Lord    1190,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Orc Hero    1087,1,1800000,0,1
//bossnia_01,0,0,0,0    monster    Samurai Specter    1492,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Moonlight Flower    1150,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Lord of the Dead    1373,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Ktullanux    1779,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Kiel D-01    1734,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Thanatos Phantom    1708,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Lady Tanee    1688,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Tao Gunka    1583,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Turtle General    1312,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Pharaoh    1157,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Stormy Knight    1251,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Falling Bishop    1871,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Phreeoni    1159,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Golden Thief Bug    1086,1,3600000,0,1
//bossnia_01,0,0,0,0    monster    Evil Snake Lord    1418,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    RSX-0806    1623,1,7200000,0,1
//bossnia_01,0,0,0,0    monster    Assassin Cross Eremes    1647,1,0,0,1
//bossnia_01,137,118,1,1    monster    Whitesmith Howard    1648,1,0,0,1
//bossnia_01,122,195,1,1    monster    Beelzebub    1873,1,0,0,1
//bossnia_01,45,118,1,1    monster    Beelzebub    1873,1,0,0,1
//bossnia_01,196,122,1,1    monster    Valkyrie Randgris    1751,1,0,0,1
//bossnia_01,142,61,1,1    monster    Ifrit    1832,1,0,0,1
//
////----------------------------------------------------------------------------
//// bossnia_02 - Bossnia
////----------------------------------------------------------------------------
//bossnia_02,0,0,0,0    monster    Garm    1252,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Gloom Under Night    1768,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Dark Lord    1272,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Doppelganger    1046,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Dracula    1389,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Drake    1112,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Detale    1719,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Maya    1147,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Mistress    1059,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Baphomet    1039,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Egnigem Cenia    1658,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Amon Ra    1511,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Atroce    1785,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Vesper    1685,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Eddga    1115,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Osiris    1038,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Orc Lord    1190,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Orc Hero    1087,2,1800000,0,1
//bossnia_02,0,0,0,0    monster    Samurai Specter    1492,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Moonlight Flower    1150,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Lord of the Dead    1373,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Ktullanux    1779,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Kiel D-01    1734,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Thanatos Phantom    1708,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Lady Tanee    1688,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Tao Gunka    1583,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Turtle General    1312,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Pharaoh    1157,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Stormy Knight    1251,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Falling Bishop    1871,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Phreeoni    1159,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Golden Thief Bug    1086,2,3600000,0,1
//bossnia_02,0,0,0,0    monster    Evil Snake Lord    1418,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    RSX-0806    1623,2,7200000,0,1
//bossnia_02,0,0,0,0    monster    Assassin Cross Eremes    1647,2,0,0,1
//bossnia_02,137,118,1,1    monster    Whitesmith Howard    1648,2,0,0,1
//bossnia_02,122,195,1,1    monster    Beelzebub    1873,2,0,0,1
//bossnia_02,45,118,1,1    monster    Beelzebub    1873,2,0,0,1
//bossnia_02,196,122,1,1    monster    Valkyrie Randgris    1751,2,0,0,1
//bossnia_02,142,61,1,1    monster    Ifrit    1832,2,0,0,1
//
////----------------------------------------------------------------------------
//// bossnia_03 - Bossnia
////----------------------------------------------------------------------------
//bossnia_03,0,0,0,0    monster    Garm    1252,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Gloom Under Night    1768,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Dark Lord    1272,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Doppelganger    1046,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Dracula    1389,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Drake    1112,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Detale    1719,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Maya    1147,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Mistress    1059,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Baphomet    1039,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Egnigem Cenia    1658,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Amon Ra    1511,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Atroce    1785,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Vesper    1685,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Eddga    1115,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Osiris    1038,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Orc Lord    1190,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Orc Hero    1087,3,1800000,0,1
//bossnia_03,0,0,0,0    monster    Samurai Specter    1492,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Moonlight Flower    1150,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Lord of the Dead    1373,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Ktullanux    1779,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Kiel D-01    1734,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Thanatos Phantom    1708,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Lady Tanee    1688,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Tao Gunka    1583,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Turtle General    1312,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Pharaoh    1157,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Stormy Knight    1251,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Falling Bishop    1871,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Phreeoni    1159,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Golden Thief Bug    1086,3,3600000,0,1
//bossnia_03,0,0,0,0    monster    Evil Snake Lord    1418,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    RSX-0806    1623,3,7200000,0,1
//bossnia_03,0,0,0,0    monster    Assassin Cross Eremes    1647,3,0,0,1
//bossnia_03,137,118,1,1    monster    Whitesmith Howard    1648,3,0,0,1
//bossnia_03,122,195,1,1    monster    Beelzebub    1873,3,0,0,1
//bossnia_03,45,118,1,1    monster    Beelzebub    1873,3,0,0,1
//bossnia_03,196,122,1,1    monster    Valkyrie Randgris    1751,3,0,0,1
//bossnia_03,142,61,1,1    monster    Ifrit    1832,3,0,0,1
//
////----------------------------------------------------------------------------
//// bossnia_04 - Bossnia
////----------------------------------------------------------------------------
//bossnia_04,0,0,0,0    monster    Garm    1252,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Gloom Under Night    1768,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Dark Lord    1272,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Doppelganger    1046,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Dracula    1389,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Drake    1112,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Detale    1719,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Maya    1147,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Mistress    1059,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Baphomet    1039,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Egnigem Cenia    1658,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Amon Ra    1511,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Atroce    1785,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Vesper    1685,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Eddga    1115,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Osiris    1038,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Orc Lord    1190,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Orc Hero    1087,4,1800000,0,1
//bossnia_04,0,0,0,0    monster    Samurai Specter    1492,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Moonlight Flower    1150,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Lord of the Dead    1373,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Ktullanux    1779,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Kiel D-01    1734,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Thanatos Phantom    1708,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Lady Tanee    1688,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Tao Gunka    1583,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Turtle General    1312,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Pharaoh    1157,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Stormy Knight    1251,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Falling Bishop    1871,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Phreeoni    1159,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Golden Thief Bug    1086,4,3600000,0,1
//bossnia_04,0,0,0,0    monster    Evil Snake Lord    1418,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    RSX-0806    1623,4,7200000,0,1
//bossnia_04,0,0,0,0    monster    Assassin Cross Eremes    1647,4,0,0,1
//bossnia_04,137,118,1,1    monster    Whitesmith Howard    1648,4,0,0,1
//bossnia_04,122,195,1,1    monster    Beelzebub    1873,4,0,0,1
//bossnia_04,45,118,1,1    monster    Beelzebub    1873,4,0,0,1
//bossnia_04,196,122,1,1    monster    Valkyrie Randgris    1751,4,0,0,1
//bossnia_04,142,61,1,1    monster    Ifrit    1832,4,0,0,1
//
//
//bossnia_01    mapflag    nowarpto
//bossnia_02    mapflag    nowarpto
//bossnia_03    mapflag    nowarpto
//bossnia_04    mapflag    nowarpto
//bossnia_01    mapflag    nowarp
//bossnia_02    mapflag    nowarp
//bossnia_03    mapflag    nowarp
//bossnia_04    mapflag    nowarp
//bossnia_01    mapflag    nomemo
//bossnia_02    mapflag    nomemo
//bossnia_03    mapflag    nomemo
//bossnia_04    mapflag    nomemo
//bossnia_01    mapflag    nobranch
//bossnia_02    mapflag    nobranch
//bossnia_03    mapflag    nobranch
//bossnia_04    mapflag    nobranch
//bossnia_01    mapflag    noreturn
//bossnia_02    mapflag    noreturn
//bossnia_03    mapflag    noreturn
//bossnia_04    mapflag    noreturn
//bossnia_01    mapflag    nosave    SavePoint
//bossnia_02    mapflag    nosave    SavePoint
//bossnia_03    mapflag    nosave    SavePoint
//bossnia_04    mapflag    nosave    SavePoint

image.thumb.png.ab383134af29ee9d607cafc93bc2e949.png

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  207
  • Reputation:   92
  • Joined:  06/02/12
  • Last Seen:  

Hi. Remove the ; (semicolon) from these lines. Permanent monster spawns don't need semicolon.

bossnia_01,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_02,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_03,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_04,0,0,0,0 monster Poring  1002,70,0,0,0;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.01
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/20/24
  • Last Seen:  

45 minutes ago, Racaae said:

Hi. Remove the ; (semicolon) from these lines. Permanent monster spawns don't need semicolon.

bossnia_01,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_02,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_03,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_04,0,0,0,0 monster Poring  1002,70,0,0,0;

 

Bro removed the smicolon and have the same error 😕
image.thumb.png.bb63b1fe64f55e94a26eb25e1e708eb1.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  1278
  • Reputation:   170
  • Joined:  06/12/12
  • Last Seen:  

6 hours ago, Topzin said:

Bro removed the smicolon and have the same error 😕
image.thumb.png.bb63b1fe64f55e94a26eb25e1e708eb1.png

try remove ; sign at the end of all this

bossnia_01,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_02,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_03,0,0,0,0 monster Poring  1002,70,0,0,0;
bossnia_04,0,0,0,0 monster Poring  1002,70,0,0,0;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  207
  • Reputation:   92
  • Joined:  06/02/12
  • Last Seen:  

On 7/22/2024 at 9:35 PM, Topzin said:

Bro removed the smicolon and have the same error 😕

Use TAB instead of space between the parameters.

This is a tab: "	"
This is a space: " "

Correct:

bossnia_01,0,0,0,0	monster	Poring	1002,70,0,0,0
bossnia_02,0,0,0,0	monster	Poring	1002,70,0,0,0
bossnia_03,0,0,0,0	monster	Poring	1002,70,0,0,0
bossnia_04,0,0,0,0	monster	Poring	1002,70,0,0,0
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...