Jump to content

feehcarvalhoce

Members
  • Posts

    16
  • Joined

  • Last visited

1 Follower

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1114 profile views

feehcarvalhoce's Achievements

Drops

Drops (2/15)

  • Reacting Well
  • First Post
  • Collaborator
  • Conversation Starter
  • Dedicated

Recent Badges

0

Reputation

  1. Hi friends, I'm making an NPC for the player to see a list of Guilds on the server and choose one to apply to, but when I try to force him to register the player in SQL in the guild_member, it doesn't count, the player can't join the guild . Can anyone give me this support? Script: caspen,107,190,5 script Guild Recruitment 4_F_SON,{ // Variables set .@gname$, ""; set .@gcount, 0; // Check if the player is already in a guild if (getcharid(2) != 0) { mes "^FF0000[Guild Recruitment]^000000"; mes "You are already part of a guild. Please leave your current guild before creating a new one."; close; } // Welcome message mes "^FF0000[Guild Recruitment]^000000"; mes "Welcome to the recruitment system!"; next; mes "^FF0000[Guild Recruitment]^000000"; mes "Here you can request to join one of the guilds."; next; // SQL query to get guild names query_sql "SELECT g.name FROM `guild` g", .@gname$; // Check if any guilds were found if (.@gname$ == "") { mes "^FF0000[Guild Recruitment]^000000"; mes "No guilds found."; } else { mes "^FF0000[Guild Recruitment]^000000"; mes "Available guilds:"; // Display guild names for (set .@i, 0; .@i < getarraysize(.@gname$); set .@i, .@i + 1) { mes "- " + .@gname$[.@i]; set .@gcount, .@gcount + 1; } // Ask for player's choice mes "Enter the number of the guild to request an invitation:"; input .@gchoice, 1, .@gcount; if (.@gchoice < 1 || .@gchoice > .@gcount) { mes "Invalid choice."; } else { // Send invitation to the chosen guild set .@selectedGuild$, .@gname$[.@gchoice - 1]; mes "You have requested an invitation to the guild: " + .@selectedGuild$; // Sending the invitation (replace with correct logic) // Here, you should have the logic to find the guild master set .@guildId, query_sql("SELECT id FROM `guild` WHERE name = '" + .@selectedGuild$ + "' LIMIT 1"); // If the guild exists, send the invitation if (.@guildId) { // Example of inviting the guild master // guild_invite(getmasterid(.@guildId), getcharid(0)); query_sql("INSERT INTO guild_member (guild_id, char_id, account_id, exp, position, online, lv, class, name, hair, hair_color, clothes_color, body, head_top, head_mid, head_bottom, shield, weapon, robe, last_login, memo, membersonline, fame) VALUES (" + .@guildId + ", " + getcharid(0) + ", " + getcharid(3) + ", 0, 0, 0, " + baselevel + ", " + class + ", '" + escape_sql(strcharinfo(0)) + "', " + hair + ", " + haircolor + ", " + clothcolor + ", 0, " + readparam(8) + ", " + readparam(9) + ", " + readparam(10) + ", 0, 0, 0, NOW(), '', 0, 0)"); } else { mes "Error sending the invitation. Guild not found."; } } } close; }
  2. I arrived to change it but it doesn't give a set and doesn't even recognize that I killed it, I can repeat it as many times as I want and it still doesn't teleport OnEvilClone_Event: // Remove the line that checks the killed monster's ID // if (killedgid != ShadowClone_Slain) end; // Marks that the player has defeated the shadow clone set ShadowClone_Slain, 1; // Warps the player to Prontera warp "prontera", 150, 150; // Announces congratulations to the player announce "Congratulations, " + strcharinfo(0) + "! You have defeated your own clone.", bc_self; end;
  3. @Racaae , I even tried to fix the part that isn't reading the marking or the warp. Script: OnEvilClone_Event: if (killedgid != ShadowClone_Slain) end; // Checks if the killed monster is the correct clone // Marks that the player has defeated the shadow clone set ShadowClone_Slain, 0; // Warps the player to Prontera warp "prontera", 150, 150; // Announces congratulations to the player announce "Congratulations, " + strcharinfo(0) + "! You have defeated your own clone.", bc_self; end;
  4. @Racaae How do I teleport the player to Prontera as soon as he kills the clone?
  5. First of all, thank you very much for your attention and help. The script works normally, the only problem is that it doesn't teleport to the ready when it kills the clone.
  6. Hi Friends, I need support, I'm putting together a custom event, where the NPC summons a clone to fight against the player who summoned it, I wanted to insert a condition that if he kills the clone, he is teleported to another map, and if he dies the clone also dies, could you help me? I've been trying alone for days, but I can't Here's the script: prt_fild01,76,171,5 script Kelly 4_F_KHELLY,{ OnInit: mes "[NPC Challenge]"; mes "Hello, adventurer. Are you ready for the next test?"; next; mes "[NPC Challenge]"; mes "To pass this test, you will have to face your greatest weakness: yourself."; next; mes "[NPC Challenge]"; mes "Now, get ready..."; next; mes "[NPC Challenge]"; mes "I have summoned a shadowy clone of you. Only you can see it and defeat it."; next; mes "[NPC Challenge]"; mes "Defeat your own clone to pass this challenge."; next; // Get the name of the player interacting with the NPC set .@player_name$, strcharinfo(0); // Check if the player has already defeated the shadow clone if (getcharid(0, "ShadowClone_Slain") == 1) { mes "[NPC Challenge]"; mes "Congratulations! You have already defeated your own clone."; close; } // Call the @clone command to summon the shadow clone clone "anrydrago", 76, 171, "@EvilClone_Event_" + .@player_name$, getcharid(0), 0, 0; close; OnEvilClone_Event: mes "[Shadow Clone Event]"; mes "You have defeated your own clone. Congratulations!"; next; // Mark that the player has slain the shadow clone setcharid(0, "ShadowClone_Slain", 1); // Teleport the player to Prontera warp "prontera", 150, 150; close; }
  7. Hello everyone, I would like some help regarding this error presented, some characters when they enter the game, this error and crash appears, could someone help me? --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Debug Error! Program: C:\Users\ferna\Desktop\Emulador Novo\map-server.exe Module: C:\Users\ferna\Desktop\Emulador Novo\map-server.exe File: Run-Time Check Failure #2 - Stack around the variable 'key' was corrupted. (Press Retry to debug the application)
  8. Hello, how are you? I'm doing a custom ragnarok with some custom classes and saw their sprites are great, if I wanted to do
    Order for the following classes below:

    Novice - Female and Male
    Mago - Female and Male
    Warrior - Female and Male
    Thief - Female and Male
    Archer - Female and Male
    Support - Female and Male


    How much would it be worth? I would like to make a budget xD and what would be the method of payment? Paypal

    Ps: I'm Brazilian xD

     

     

  9. Hello, someone knows these plugins and know where to get ? RCX Plugin: You use the @rcx command and already carries a plugin using the own Clonewars: You use an NPC where you can choose as his "clone guild" will be, if you have very creators dd, dd hw and so on.. the player to die, the clones guild dies. RCX Plugin: http://i.imgur.com/7l6EiHz.jpg Clonewars: https://www.youtube.com/watch?v=jzGlCo9qZLg att,
×
×
  • Create New...