Emistry

Forum Moderator
  • Content Count

    9,105
  • Avg. Content Per Day

    3
  • Joined

  • Last visited

  • Days Won

    188

Emistry last won the day on September 17

Emistry had the most liked content!

Community Reputation

1,856 Excellent

About Emistry

  • Rank
    /me hate IPS4 Editor
  • Birthday July 20

Profile Information

  • Gender
    Male
  • Location
    Novice Ground
  • Server
    127.0.0.1
  • Github
    emistry
  • Interests
    Chit-chat ~

Contact Methods

Recent Profile Visitors

40,873 profile views
  1. your char_reg_num table has no data for the NPC to display it. have you checked that?
  2. OnAddPoint: [email protected]_bg = 0; if (.Guillaume_Score > .Croix_Score) [email protected]_bg = [email protected]_id1; else if (.Croix_Score > .Guillaume_Score) [email protected]_bg = [email protected]_id2; if ([email protected]_bg) { addrid(5, 1, "bat_b02"); if (getcharid(4) == [email protected]_bg) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; } else { atcommand "@addfame 2 -100"; dispbottom "You lose -100 Fame for losing."; } } end;
  3. OnAddPoint: [email protected]_bg = 0; if (.Guillaume_Score > .Croix_Score) [email protected]_bg = [email protected]_id1; else if (.Croix_Score > .Guillaume_Score) [email protected]_bg = [email protected]_id2; if ([email protected]_bg) { addrid(5, 1, "bat_b02"); if (getcharid(4) == [email protected]_bg) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; } else { atcommand "@addfame 2 -100"; dispbottom "You lose -100 Fame for losing."; } [email protected]_bg = 0; } end;
  4. OnAddPoint: if (.Guillaume_Score > .Croix_Score) [email protected]_bg = [email protected]_id1; else if (.Croix_Score > .Guillaume_Score) [email protected]_bg = [email protected]_id2; if ([email protected]_bg) { addrid(5, 1, "bat_b02"); if (getcharid(4) == [email protected]_bg) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; } else { atcommand "@addfame 2 -100"; dispbottom "You lose -100 Fame for losing."; } } end;
  5. @makeegg <egg ID> Creates a Pet Egg based on the given ID. *makepet <pet id>; This command will create a pet egg and put it in the invoking character's inventory. The kind of pet is specified by pet ID numbers listed in 'db/(pre-)re/pet_db.yml'. The egg is created exactly as if the character just successfully caught a pet in the normal way. // This will make you a poring: makepet 1002; Notice that you absolutely have to create pet eggs with this command. If you try to give a pet egg with 'getitem', pet data will not be created by the char server and the egg will disappear when anyone tries to hatch it. read the doc
  6. try OnAddPoint: if (.Guillaume_Score > .Croix_Score) [email protected]_bg = [email protected]_id1; else if (.Croix_Score > .Guillaume_Score) [email protected]_bg = [email protected]_id2; [email protected]_id = getcharid(4); if ([email protected]_bg) { addrid(5, 1, "bat_b02"); if ([email protected]_id == [email protected]_bg) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; } else { atcommand "@addfame 2 -100"; dispbottom "You lose -100 Fame for losing."; } } end;
  7. for([email protected] = EQI_ACC_L; [email protected] <= EQI_HAND_R; [email protected]++) { if(getequipisequiped([email protected])) { [email protected]$ += F_getpositionname([email protected]) + " - " + "[" + getequipname([email protected]) + "]"; [email protected] = 1; } [email protected]$ += ":"; } you dont really need the array for equipment position, you could use the F_getpositionname(...)
  8. either you are not using the correct script or you are not connecting to the correct db
  9. src/map/itemdb.cpp#L582-L596 /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(unsigned short nameid) { // add this part if (nameid == 2613 || nameid == 2610) return 1; int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: case IT_ARMOR: case IT_PETARMOR: case IT_SHADOWGEAR: return 0; default: return 1; } }
  10. pet egg are supposedly given to player by using makeegg atcommand / script commands. giving an egg to player using getitem will simply make the egg broken.
  11. try OnAddPoint: if( .Guillaume_Score > .Croix_Score ) { [email protected]_bg_id = [email protected]_id1; [email protected]_bg_id = [email protected]_id2; } else if( .Croix_Score > .Guillaume_Score ) { [email protected]_bg_id = [email protected]_id2; [email protected]_bg_id = [email protected]_id1; } else end; [email protected] = bg_get_data([email protected]_bg_id, 1); copyarray [email protected], [email protected], [email protected]; [email protected] = bg_get_data([email protected]_bg_id, 1); copyarray [email protected], [email protected], [email protected]; for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (attachrid([email protected][[email protected]])) { atcommand "@addfame 2 100"; dispbottom "You gained 100 Fame for winning."; detachrid; } } for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (attachrid([email protected][[email protected]])) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; detachrid; } } end;
  12. - script atcmd_example -1,{ OnInit: bindatcmd("rentitem", strnpcinfo(3)+"::OnAtcommand"); end; OnAtcommand: [email protected] = atoi([email protected]_parameters$[0]); [email protected] = atoi([email protected]_parameters$[1]); [email protected] = atoi([email protected]_parameters$[2]); [email protected] = atoi([email protected]_parameters$[3]); [email protected] = atoi([email protected]_parameters$[4]); [email protected] = atoi([email protected]_parameters$[5]); if (getitemname([email protected]) != "null") { if (getiteminfo([email protected], 2) != IT_CARD) { rentitem2 [email protected], (24 * 60 * 60),1,[email protected],0,[email protected],[email protected],[email protected],[email protected]; } else { dispbottom [email protected]_command$+" - You cant rent "+getitemname([email protected]); } } else { dispbottom [email protected]_command$+" - invalid item #"[email protected]; } end; }
  13. setup 1 login-server, then 2 char-server and 2 map-server using different port for connection.
  14. src/map/itemdb.cpp#L582-L596 /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(unsigned short nameid) { int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: case IT_ARMOR: case IT_PETARMOR: case IT_SHADOWGEAR: return 0; // <--------- REMOVE or Change to 1 default: return 1; } }
  15. OnAddPoint: if( .Guillaume_Score > .Croix_Score ) { [email protected]_bg_id = [email protected]_id1; [email protected]_bg_id = [email protected]_id2; } else if( .Croix_Score > .Guillaume_Score ) { [email protected]_bg_id = [email protected]_id2; [email protected]_bg_id = [email protected]_id1; } if ([email protected]_bg_id) { [email protected] = bg_get_data([email protected]_bg_id, 1); copyarray [email protected], [email protected], [email protected]; for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (attachrid([email protected][[email protected]])) { atcommand "@addfame 2 100"; dispbottom "You gained 100 Fame for winning."; detachrid; } } } if ([email protected]_bg_id) { [email protected] = bg_get_data([email protected]_bg_id, 1); copyarray [email protected], [email protected], [email protected]; for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (attachrid([email protected][[email protected]])) { atcommand "@addfame 2 -100"; dispbottom "You lose 100 Fame for losing."; detachrid; } } } end;