Jump to content

Zelek

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by Zelek

  1. 10 hours ago, Skorm said:

    Post the code you're testing in full.

    Here you go, please take a look

    prontera,150,150,0	script	YGG Trader#spiritD	1_F_MERCHANT_02,{
    
    	mes "[YGG Trader]";
    	mes "Would you like to buy some";
    	mes "yggdrasil items?";
    	if (countitem(7227) < 1) {
    		mes "I only accept TCG Card as payment.";
    		mes "Please come back when you have TCG Cards.";
    		close;
    	}
    	switch(select("No:Yes")){
    	case 1:
    		close;
    	case 2:
    		callshop "YGG_SHOP",1;
    		end;
    	}
    
    }
    -	itemshop	YGG_SHOP	-1,7227,607:1,608:1

     

  2. 1 hour ago, SpiritD said:

    I can do this -- give me a little time (at work right now)

    /edit/ Okay so I realize now you need to make your own custom item "box". For example, player will buy the 10 count berry box for 2 TCG, open the box and get 10 berry. I'll give you my shop code but it's nothing special... you will need to create your own item ID for the box and put it into this script.

    
    MAP,X,Y,Z	script	YGG Trader#spiritD	SPRITE,{
    
    	mes "[YGG Trader]";
    	mes "Would you like to buy some";
    	mes "yggdrasil items?";
    	if (countitem(7227) < 1) {
    		mes "I only accept TCG Card as payment.";
    		mes "Please come back when you have TCG Cards.";
    		close;
    	}
    	switch(select("No:Yes")){
    	case 1:
    		close;
    	case 2:
    		callshop "YGG_SHOP",1;
    		end;
    	}
    
    }
    -	itemshop	YGG_SHOP	-1,7227,<itemid>:<price>,<itemid>:<price>

     

    Thank you for responding! But, is there another way for it to work w/o having to create custom boxes? I mean the existing one already does the job it's just that I am only able to purchase 1 of them and not both.

    Also there's an error on the script,

    [Error]: npc_parsesrcfile: Unable to parse, probably a missing or extra TAB in f
    ile 'npc/custom/sample.txt', line '20'. Skipping line...
     * w1=-
     * w2=itemshop
     * w3=YGG_SHOP
     * w4=-1,7227,607:1,608:1

     

  3. Hi,

    I would like to ask for a script that works like Euphy's Quest Shop but it lets player to purchase multiple items in the list instead of one at a time. Currency would be TCG.

     

    For example, player clicks NPC, NPC gives a short dialogue then shop opens. Item exchange rate for Yggberry would be 2TCG : 10 Berry(4:20 and so on) while Yggseeds would be 1TCG:10 Seeds(2:20 and so on)

    I managed to do the exchange rates right on Euphy's Quest Shop except for the dialogue and the be able to purchase multiple items(Yggseeds and Berries) in 1 transaction.

    I hope I explained it enough. Thank you!

  4. Hi.

    I am running a server with Pre-RE mechanics and etc. with RE items implemented. I am currently using zackdreaver's iteminfo.lua for Pre-RE but some items does not have the description e.g Costume Amistr Bag with " . . . " and a lot more. I also tried using the RE one but it uses RE defense descriptions which does not fit for my server.

    So, does anybody know a way I can make this happen without adding/editing them 1 by 1? or does anybody here kind enough to share their iteminfo similar to this.

    Thanks!

  5. I tried to modify it by changing the 3rd job IDs to trans job IDs. Does anyone know what has to be the problem with this?

    Here's the code:

    // War of Emperium for Transcendent Only
    // Created by Jezu of rAthena.org
    // v1.0 - First Release
    // Please do visit us on rAthena.org/board
    - script TransWoE -1,{
       OnInit:
    set .maps$[0],"gefg_cas04";
    set .maps$[1],"gefg_cas01";
    
    //setup flags for lookup later (.m_<map>)
    set .@i, getarraysize(.@maps$) - 1;
    while(.@i >= 0) {
     setmapflag getd(.maps$[.@i]), mf_loadevent;
     setd(".m_" + .maps$[.@i], 1);
     set .@i, .@i - 1;
    }
       end;
    
    OnPCLoadMapEvent:
       if(getd(".m_" + strcharinfo(3))) { //checks if .m_<map> is set
        if(Class >= 4008 && Class <= 4011 || Class >= 4012 && Class <= 4022) {
    announce "Transcendent Jobs are not allowed here!",bc_self|bc_yellow;
    	    warp "SavePoint",0,0;
    	    end;
        }
       }
    }
    //Mapflags
    gefg_cas04 mapflag loadevent
    gefg_cas01 mapflag loadevent
    

    The above code is not working. It doesn't warp me back to the save point and also doesn't announce. Please help!

  6. Salamat po sa tulong :) naayos ko na po yung problem ko sa itaas. Nagbago po ako ng client into 2011-03-15.

    Yung problem ko naman ngayon eh yung hair color palettes. 0-8 gumagana po pero pagka lampas 9~ nagkaka problema na. Blackish-Rainbowish po yung lumalabas. Ano naman po kaya yung dahilan kung bakit po ganon?

    • 2011-03-15 po yung Client at yung kay Alexandria na Data Folder po ang gamit ko.
    • Stated po dun na kumpleto yung palettes, etc.

    Patulong po ulet!

    Maraming salamat po!

×
×
  • Create New...