Jump to content

kangfredy

Members
  • Posts

    388
  • Joined

  • Last visited

Posts posted by kangfredy

  1. bcause you didnt add a label to be trigger upon dead...refer previous post

    tq emistry :)...i will try again :D...

    erm ....

    *strcharinfo(<type>)

    This function will return either the name, party name or guild name for the

    invoking character. Whatever it returns is determined by type.

    0 - Character's name.

    1 - The name of the party they're in if any.

    2 - The name of the guild they're in if any.

    3 - The name of the map the character is in.

    If a character is not a member of any party or guild, an empty string will be

    is there any strcharinfo(4) in the 1st place ?

    BUILDIN_FUNC(strcharinfo)
    {
    TBL_PC *sd;
    int num;
    struct guild* g;
    struct party_data* p;
    
    sd=script_rid2sd(st);
    if (!sd) { //Avoid crashing....
    	script_pushconststr(st,"");
    	return 0;
    }
    num=script_getnum(st,2);
    switch(num){
    	case 0:
    		script_pushstrcopy(st,sd->status.name);
    		break;
    	case 1:
    		if( ( p = party_search(sd->status.party_id) ) != NULL )
    		{
    			script_pushstrcopy(st,p->party.name);
    		}
    		else
    		{
    			script_pushconststr(st,"");
    		}
    		break;
    	case 2:
    		if( ( g = guild_search(sd->status.guild_id) ) != NULL )
    		{
    			script_pushstrcopy(st,g->name);
    		}
    		else
    		{
    			script_pushconststr(st,"");
    		}
    		break;
    	case 3:
    		script_pushconststr(st,map[sd->bl.m].name);
    		break;
    	default:
    		ShowWarning("buildin_strcharinfo: unknown parameter.\n");
    		script_pushconststr(st,"");
    		break;
    }
    
    return 0;
    }

    shouldn't be like ... the server throw error for you ?

    ShowWarning("buildin_strcharinfo: unknown parameter.\n");

    yep i use faction system annie..:) so it's extended number 4 it's player faction..:)

  2. guys i have problem with auto warp.if some one login.it's auto warp to some where.and i will ask..if some one dead how to make auto warp in some where??

    this is my script

    - script Race_system -1,{

    OnPCLoginEvent:

    if (strcharinfo(4) == "Hades") goto L_Hades;

    if (strcharinfo(4) == "Athena") goto L_Athena;

    if (strcharinfo(4) == "") goto L_no;

    L_Hades:

    warp "Gonryun",159,158;

    end;

    L_Athena:

    warp "Lighthalzen",159,90;

    end;

    L_no:

    warp "izlude",94,103;

    end;

    }

  3. ha?

    Question1:what your script does

    answer1: it's for automatic spawn for my server....but i just need only every Sunday 7.30 PM.and announcer for all people some one kill this monster..and give reward for killing it......(sory my english is bad)

    Question2:what your idea is,

    Answe1r:i need this script for war different faction :D...and admin not to bother for spawning monster :)

    Question3:how you want it to work

    answer3: like answer number 1.

  4. guys why my monster can'nt spawn?

    this is my script

    amatsu,13,152,4 script RasWarAnnouncement 767,{

    mes "jadwal Ras War ialah setiap hari minggu.pukul 19.30";

    close;

    OnSun1930:

    monster "bat_b02",325,149,"Stone of God Hades",2549,1,"npcname::OnThisMobDeath";

    monster "bat_b02",65,151,"Stone of God Athena",2548,1,"npcname::OnThisMobDeath2";

    end;

    OnThisMobDeath:

    announce "karakter, "+strcharinfo(0)+" telah menghancurkan StoneOFGod Hades!!!harap mengambil hadiah di Admin/Event Manager",bc_all;

    end;

    OnThisMobDeath2:

    announce "karakter, "+strcharinfo(0)+" telah menghancurkan StoneOFGod Hades!!!harap mengambil hadiah di Admin/Event Manager",bc_all;

    end;

    }

    }

    i think it must be spawn..on this timmer.

  5. it's on line 36 and on line 38

    set

    username "username my server"

    Don't forget the comma at the end of each of those lines.

    	'Hostname'   => '127.0.0.1',
    'Username'   => 'ragnarok',
    'Password'   => 'ragnarok',
    'Database'   => 'ragnarok',

    oh im forget it...:D.wkwkkwkw..but guys why im cannot login admin panel???

  6. guy i have problem.with

    Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/kloxo/httpd/default/flux/config/servers.php on line 38

    and after i see this config.

    it's on log error

    'LogsDbConfig' => array(

    //'Socket' => '/tmp/mysql.sock',

    //'Port' => 3306,

    //'Encoding' => null, // Connection encoding -- use whatever here your MySQL tables collation is.

    'Convert' => 'utf8',

    // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.

    // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)

    it's on line 36 and on line 38

    set

    username "username my server"

    i think.....it's need db?(like item_db.sql,mob_db.sql)

    if i don't use db sql but use db.txt how to configure?

×
×
  • Create New...