Jump to content

Linkin Park

Members
  • Posts

    227
  • Joined

  • Last visited

Posts posted by Linkin Park

  1. Hi,

    I need to know where in src does the code for reading the effect of headgears is located? I'm trying to create another type of equipment but it doesn't show any stats added even if I put 'bonus bAllStats,3;' from the script part.

    Thanks in advance

  2. You can still use string array. and the way you talk is a lil bit arrogant.

    How to insert a value on a string array whenever I want to add a new code? and how would I remove it from the array once it has been redeemed?

  3. Not sure why you need to use the SQL, unless you want to keep a log of those codes. You don't have to reload the NPC everytime because it uses temp var that your GM account input.

    Geez, your example uses 1 variable for the code, what if I want to add 100 codes with different prizes for EACH code? Got my point?

    Table structure would be

    code, item id, amount

    Once the code has been redeemed, it will be automatically removed from the database.

  4. No need of SQL db tho. Just use following elements:

    // CP
    input .PromoCode$;
    mes "Promo code is set to " + .PromoCode$ + ".";
    set .PromoClaimed,0;
    close;
    // Redeem
    input @PromoCode$;
    if (@PromoCode$ != .PromoCode$) {
    mes "Code not exist!";
    close;
    }
    if (.PromoClaimed == 1) {
    mes "Code has redeemed by someone else.";
    close;
    }
    getitem <item id>,<quantity>;
    set .PromoClaimed,1;
    close;
    

    Did you ever read the whole post? That's exactly what the link I posted does. The reason I want to use SQL is so that I can add codes anytime without having to reload the NPC again or using up variables.

  5. Hi,

    I want to request something similar to this one http://rathena.org/b...ional-code-npc/ , but just want to use the promotional codes system.

    What I want is just the promotional codes system where the Admin can insert a code and an item that will be given out when the player entered the code.

    Let's say for example, Admin talked to the NPC, added code HJ78SD with the prize of 100x TCG Cards. The player that will enter HJ78SD when he tries to redeem the code, he'll get the specific prize.

    There will be different prizes for each code, of course to be set by the Admin. 1 code is only redeemable ONCE. So once the code has been redeemed, it will be automatically removed from the database instead of having the status set to 1 like from the link above.

    Already made my own.

  6. not sure whether it work or not , I am not that good at src edit :)

    if(sc && sc->data[sC_SPIRIT] && sc->data[sC_SPIRIT]->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[sC_HERMODE] && rnd()%100 < 70 || !tsc || !tsc->count || status_isimmune(bl) && tsc && tsc->data[sC_HERMODE] )
    break;
    

    Thank you! Hope it works, I'll test it out tomorrow :D

    -----------

    Doesn't work, it completely fail the dispell even the enemy has no GTB card on it when the Professor has Soul Link

    BUT

    When the Professor has no Soul Link, it can dispel the enemy 100% chance even with GTB Card.

  7. Hi,

    Attached below is a modified codes for the strip skills way back 2008. I think this was made by DZeroX if I'm not mistaken.

    Basically what it does is allow the Stalker with Soul Link to strip an enemy's weapon, armor, shield or headgear even the enemy has FCP. It requires 1 "Coat Remover" item to strip. There's still a chance that the strip will fail though and the item will be consumed.

    I don't think this will work with the current code so I attached it here and asking someone if they can modify it to be compatible with the current code.

    Thank you :)

    stripskill.rar

  8. How can I make Professors to be able to dispel enemies wearing GTB with chance, let's say 30% chance to dispel an enemy even though he is wearing GTB.

    I checked the SA_DISPELL in skill.c and I think this is where the part where it won't dispel those who has GTB

    
    if(status_isimmune(bl) || !tsc || !tsc->count)
    			break;

    1. stop the login, char, and map servers
    2. run this first SQL query:
      DELETE FROM `guild_member` WHERE `char_id` NOT IN (SELECT `char_id` FROM `guild`);


    3. run this second SQL query:
      UPDATE `char` SET `guild_id`=0 WHERE `char_id` NOT IN (SELECT `char_id` FROM `guild_member`);


    Thank you! :)

  9. try run this in your SQL....make sure you do backup 1st just in case anything happen...

    
    DELETE FROM `guild` WHERE `name` <> `master` ;
    

    I don't think this is the right query as the guild members are located inside the guild_member table.

    Will this query work?

    DELETE FROM `guild_member` where position <> 0

  10. Hi,

    I need to remove all members of all the guilds except the guild master of the guilds in my database, how to do it?

    It's like wiping all members of the guilds except the guild master to still save the guilds.

  11. Hi,

    Would like to request a Fishing Script that lets players gain fishing experience points and make their fishing level up to max of level 10

    Each level will have specific items to get, rarest items can be obtained at level 10 fishing. Of course, the items are random and configurable per level.

    Anyone? :)

×
×
  • Create New...