Jump to content

Aeia

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by Aeia

  1.  

     

    can I please request for a reward giver script that works like this:

     

    - GM will click the npc

    - NPC will ask for the name of the player..

    - when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

    - work  for gm level 1and up..

    - if the GM typed the wrong name.. it will give gm a message to try again.. 

     

    Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

     

    prontera,163,173,4	script	GM Helper	980,{	
    if( getgmlevel() < 80 ) {
    mes "You are not a GM with level 80 or higher, GTFO!";
    close;
    }
    set .@Gm$,"[GM Helper]";
    
    digit:
    mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
    next;
    switch( select ("Set a winner","Exit")) {
    
    	case 1:
    	mes .@Gm$;
    	mes "Enter char name";
    	next;
    	while(!.@id) {
    		input .@name$;
    		mes "[GM Helper]";
    		set .@id,getcharid(3,.@name$);
    		if(!.@id) {
    			mes "Character not online. Please try again";
    			next;
    			continue;
    		}
    	}
    	mes "["+.@name$+"] is correct?";
    	if( select ("Yes:No") == 2) close;
    	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
    	mes "Given reward to " + .@name$;
    	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
    	close;
    	break;
    	
    	case 2:
    	mes .@Gm$;
    	mes "Nothing to do.";
    	close;
    	break;
    }
    }
    

    Have fun please give me feed back.

     

    What if the player talks again to the NPC, s/he will again get a reward?

    Wouldn't be any abuse on it?

    No normal player can't talk to this npc because it's set up on gm level :).

     

    Thank you for confirming, or I shall hijack this thread to ask if 'what if' the player will get a reward from the NPC so GM can just leave the prize to the NPC for the player to get but won't again get the prize once the player has already received it? I'm new with scripting..

  2. Hello everyone,

    I would like to ask for a request on how will I add a timer for the credits exchange.

    If the user will exchange their zeny to credits, there'll be a delay before the user can exchange his zeny to credits again.

    But if the user will exchange their credits to zeny, there'll be no delay on exchange.

    The delay on exchange will be applied on the whole account.

    The duration of the exchange delay is for 12hours. ( So the user can only exchange a maximum of 200Credits(2billion) every 12hours )

    If ever the user exchange only 300m, he/she will still need to wait for 12hours before he/she can exchange again.

     

    Here's the script ( From DaemonSpade )
     

    prontera,158,192,3	script	Credit Exchanger	504,{
    
    //====================================[Customization Area]==========================//
    		set .npcname$,"^0000EE[Credit Exchanger]^000000"; //NPC Name
    		set .coinname$,"^0000EECredit^000000"; //Name of Item as Coin Used
    		set .CoinID,30005; // Credit ID Set to Red Potion
    		set .zeny,10000000; // Credit Price Set by 10,000,000 or 10m
    		set .capzeny,2000000000; //Zeny Capacity Set by 2,000,000,000 or 2b
    //==============================================================================//
    // Check Line 89 To Edit The Chat/Pub Name Like This:
    //		waitingroom "Credit Exchanger",0;
    //==============================================================================//
    
    		PlayerMode:
    		mes .npcname$;
    		mes "Hello there "+strcharinfo(0);
    		mes "Rule's Of Exchange";
    		mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
    		mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
    		switch(select("(Credits) to (Zeny):(Zeny) to (Credits)")) {
    	Case 1:
    		next;
    		mes .npcname$;	
    		mes "How many Credits to exchange?";
    		mes "Put The Credit Amount";
    		mes "Put  ^0000EE[0]^000000 to Cancel";
    		mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
    		mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
    		next;
    		do{
    		input @Credit,0,countitem(.CoinID);
    		if( @Credit < 1 ) close;
    		}while( ( ( @Credit * .zeny ) + Zeny ) > .capzeny );
    		next;
    		mes .npcname$;
    		mes "Thanks";
    		delitem .CoinID,@Credit;
    		set Zeny, Zeny + ( @Credit * .zeny );
    		dispbottom "Zeny Exchange Finished";
    		close;
    
    	Case 2:
    		next;
    		mes .npcname$;	
    		mes "How much Credit you like to Gain?";
    		mes "Put The Credit Amount";
    		mes "Put  ^0000EE[0]^000000 to Cancel";
    		mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
    		mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
    		next;
    		input @Credit,0,( Zeny / .zeny );
    		if( @Credit < 1 ) close;
    		next;
    		mes .npcname$;
    		mes "Thanks.";
    		set Zeny, Zeny - ( @Credit * .zeny);
    		getitem .CoinID,@Credit;
    		dispbottom "Credit Exchange Finished";
    		close;
    		end;
    	}
    close;
    }
    

    Thank you in advance!

  3. My current host is TrinityNetworks and my current service is the DRO one which is located at Las Vegas Nevada.

    Me and my players are currently having disconnection problems every now and then. And also I haven't receive any of their replies lately.

    So I think I might go with the other host which is located at Los Angeles California.

     

    Oh and also, what hosting company would you suggest?

     

    Anyway, Thank you for your opinions! :)

  4. In what place do you prefer your hosting to be located?

    Los Angeles California or Las Vegas Nevada?

     

    By the way, I don't know if this is the correct thread to ask.

    Thank you in advance!

     

  5. I am having trouble with a Closed Connection issue here..

    I have change the char_athena/map_athena's login_ip, char_ip, and map_ip's values to the VPS's IP Address but this error still occurs..

    Screenshot:

    error_zps64a9dd11.png

    As you can see above, all three servers are green and running but this error keeps popping out..

    Please someone help me on this..

    Thank you in advance!

  6. I tried copying Endure's re-use skill delay(Duration2) on skill_cast_db.txt, but there's no cooldown occuring on Suffragium..

    Any help?

     

     

    // SkillID,CastingTime,AfterCastActDelay,AfterCastWalkDelay,Duration1,Duration2

     

    //-- SM_ENDURE

    8,0,0,0,10000:13000:16000:19000:22000:25000:28000:31000:34000:37000,10000

     

    //-- PR_SUFFRAGIUM
    67,0,2000,0,15000,30000

     

     

  7. I haven't tried the script yet but are there any errors regarding this script or any suggestions to improve this?

    prontera,156,127    script    Quest    456,{
        mes "[ Quest ]";
        mes "What do you want to do?";
        menu "Start Killing",-,"Check Kill Status",CheckKill,"Close",End;
        next;
        mes "[ Quest ]";
        mes "Start Killing 100 porings now!";
        close;
    
    CheckKill:
        next;
        if (killedmonsters >= 100) {
        mes "Wow you killed 100 porings, wanna finish this quest now?";
        mes "Awesome here's a prize!";
        set zeny,zeny+9001;
        set killing_quest,1;
        close;
        }
    
        next;
        mes "[ Quest ]";
        mes "Your current porings kills are "+killedmonsters+"";
        close;
    
    End:
        close;
    
    OnNPCKillEvent:
        if (KilledRid == 1002) {
        set killedmonsters,killedmonsters+1;
        dispbottom "Porings Killed +"killedmonsters"+ ";
        }
    end;
    }
    

     

  8. 
    // MySQL Log SQL Database
    log_db_ip: 127.0.0.1
    log_db_port: 3306
    log_db_id: ragnarok
    log_db_pw: ragnarok
    log_db_db: ragnarok
    log_codepage:
    log_login_db: loginlog
    
    

    make sure their are pointed to the correct Scheme Table in your SQL.

    Where can I find this? :o

     

    EDIT:

    Yes they are pointed.. Other logs like loginlog, atcommandlog are working well.. My only problem is the picklog

  9. Hello guys,

    I would like to ask for help about database problem in mysql..

    Here are some screenshots of it..

     

    picklog_zpsd28ee0e4.png

     

    picklog2_zps201bfaf8.png

     

    picklog3_zpscb373815.png

     

    As you can see, already have uploaded the logs.sql, and have the .log file in my log/trunk folder..

    But there're no entries in the 2 picklogs..

    Any help?

  10. But it says

       // This will change the emblem on the flag to that of the guild that owns   // "guildcastle"   flagemblem GetCastleData("guildcastle",1);

     

    But it how will I be able to change it to guild name/ID?

     

    EDIT: Should I use this?

    Syntax

    • flagemblem <guild id>;
  11. What should I edit here to have a customize flag with the guild's current emblem..

    And also, about the CastleData, can I just change it to GuildData?
    Thank You in Advance!

     

     

    
    lhz_in03,112,25,4,2	script	Unknown HQ	722,{
    	set .@GID, GetCastleData("aldeg_cas03",1);
    		{
    		mes "[ Unknown HQ ]";
    		mes "Welcome to the Headquarters of the Unknown Guild!";
    		mes " ";
    		mes "The current Guild Leader of Unknown Guild is ^FF0000" + GetGuildMaster(.@GID) + "^000000.";
    		mes " ";
    	}
    	close;
    
    OnRecvCastleA03:
    	FlagEmblem GetCastleData("aldeg_cas03",1);
    	end;
    }
    
×
×
  • Create New...