Jump to content

vijay

Members
  • Content Count

    76
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by vijay


  1. Hello everyone,
    As the topic says, The script bellow crashes the client.
    I've assigned a call function for a usable item.

    function	script	RefineScroll	{			set .@menu$,"";			for( set .@i,1; .@i <= 10; set .@i,.@i+1 )			{				if( getequipisequiped(.@i) )					set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";				 set .@menu$, .@menu$ + ":";			}	set .@part,select(.@menu$);		// =========================			if(!getequipisequiped(.@part)) {		getitem 18547,1;		dispbottom "You're not wearing anything there that refines!";		close;	}	//Check if the item is refinable...	if(!getequipisenableref(.@part)) {		getitem 18547,1;		dispbottom "There is no way that this item could be refined!";		close;	}	//Check if the item is identified... (Don't know why this is in here... but kept it anyway)	if(!getequipisidentify(.@part)) {		getitem 18547,1;		dispbottom "You can't refine this if you haven't appraised it first. Make sure your stuff is identified before refining it.";		close;	}	//Check to see if the items is already +10	if(getequiprefinerycnt(.@part) >= 10) {		getitem 18547,1;		dispbottom "This item can't be refined anymore, coz its already +10.";		close;	}		successrefitem .@part;		dispbottom "There you go, Enriched Refine Scroll works like a charm :D";		close;} item_db.conf:// Refine Scroll{	Id: 18547	AegisName: "Enriched_Refine_Scroll"	Name: "Enriched Refine Scroll"	Type: 0	Buy: 10	Weight: 10	Script: <" callfunc "RefineScroll"; ">}, 


    Any idea why guys?
    Thanks!

  2. @@15peaces
    This table only have upto 150lvl, my server is compiled for 255 lvl.

    HPTable:[  40,   47,   55,   64,   74,   84,   95,  107,  120,  134,	// 1 - 10			  149,  165,  182,  200,  219,  238,  258,  306,  329,  354,	// 11 - 20			  379,  406,  433,  462,  491,  521,  551,  583,  615,  649,	// 21 - 30			  683,  719,  755,  793,  831,  870,  909,  950,  991, 1034,	// 31 - 40			 1077, 1122, 1167, 1214, 1261, 1309, 1357, 1407, 1457, 1509,	// 41 - 50			 1561, 1615, 1669, 1725, 1781, 1838, 1895, 1954, 2013, 2074,	// 51 - 60			 2135, 2198, 2261, 2326, 2391, 2457, 2523, 2591, 2659, 2729,	// 61 - 70			 2799, 2871, 2943, 3017, 3091, 3166, 3241, 3318, 3395, 3474,	// 71 - 80			 3553, 3634, 3715, 3798, 3881, 3965, 4049, 4135, 4221, 4309,	// 81 - 90			 4397, 4487, 4577, 4669, 4761, 4854, 4947, 5042, 5137, 5232,	// 91 - 100			 5327, 5422, 5517, 5612, 5707, 5802, 5897, 5992, 6087, 6182,	// 101 - 110			 6277, 6372, 6467, 6562, 6657, 6752, 6847, 6942, 7037, 7132,	// 111 - 120			 7227, 7322, 7417, 7512, 7607, 7702, 7797, 7892, 7987, 8082,	// 121 - 130			 8177, 8272, 8367, 8462, 8557, 8652, 8747, 8842, 8937, 9032,	// 131 - 140			 9127, 9222, 9317, 9412, 9507, 9602, 9697, 9792, 9887, 9982]	// 141 - 150


    My server is compiled for 255 lvl so how can i get 150 - 255?


  3. Alomost there.


    Few more errors:

    1>e:mightyroherctrunksrcmapscript.c(6751): warning C4013: 'searchstr' undefined; assuming extern returning int1>e:mightyroherctrunksrcmapscript.c(6751): warning C4047: 'function' : 'int64' differs in levels of indirection from 'script_interface *'1>e:mightyroherctrunksrcmapscript.c(6751): warning C4024: 'function through pointer' : different types for formal and actual parameter 21>e:mightyroherctrunksrcmapscript.c(6776): warning C4244: '=' : conversion from 'int64' to 'int', possible loss of data1>  storage.c1>  trade.c1>  unit.c1>  vending.c1>     Creating library ..map-server.lib and object ..map-server.exp1>script.obj : error LNK2019: unresolved external symbol _searchstr referenced in function _buildin_warp_arena_queue1>..map-server.exe : fatal error LNK1120: 1 unresolved externals========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


    Just one warning remains.


    1>  script.c1>  searchstore.c1>  skill.c1>  status.c1>e:mightyroherctrunksrcmapscript.c(6776): warning C4244: '=' : conversion from 'int64' to 'int', possible loss of data1>  storage.c1>  trade.c1>  unit.c1>  vending.c1>     Creating library ..map-server.lib and object ..map-server.exp1>  map-server.vcxproj -> E:MightyROHerctrunkvcproj-12..map-server.exe========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

  4. Thanks man, will give it a go.
    I appreciate it!



    Nup, Din't work.
    There is eathena-upgrade.sql in sql/upgrades/
    I executed it and no issue.
    Only can't execute

     

    [SQL]: -- 'sql-files/upgrades/2013-11-15--00-06.sql'[SQL]: -- 'sql-files/upgrades/2013-11-18--08-23.sql'[SQL]: -- 'sql-files/upgrades/2015-07-02--18-14.sql'   


    This is the error i get when i execute those 3 upgrades

    Script line: 105	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1Script line: 105	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1Script line: 105	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') VALUES (1384473995)' at line 1

  5. Hello everyone.
    I really wanna move from eathena to HERC since herc has more support and its awesome.
    I tried converting the sql database but din't work, ended up with sql errors.

     

    What i did was.
    1) executed eathena-upgrade.sql on my eAthena 3CeAm sql database.
    2) executed the reset of upgrades from sql folder which is in the herc trunk.
    and ended up with this error.

    Char server:

     

    [SQL]: - detected 1 new SQL updates[SQL]: -- 'sql-files/upgrades/2015-07-02--18-14.sql'[SQL]: To manually skip, type: 'sql update skip <file name>'


    When i try to execute the 2015-07-02--18-14.sql.
    I endup with this error.
    11884162_936375309761796_966960445_o.jpg?oh=1f8ce2896ed94bac6438cef55b5b72ee&oe=55DA5A86


  6. pc.c is fixed and there are no more errors to be fixed on pc.c.


    Error's

     

    1>  skill.c1>  status.c1>e:mightyroherctrunksrcmapscript.c(6447): error C2065: 'st' : undeclared identifier1>e:mightyroherctrunksrcmapscript.c(6447): error C2223: left of '->rid' must point to struct/union1>e:mightyroherctrunksrcmapscript.c(6447): error C2198: 'function through pointer' : too few arguments for call1>e:mightyroherctrunksrcmapscript.c(6698): warning C4013: 'mapindex_name2id' undefined; assuming extern returning int1>e:mightyroherctrunksrcmapscript.c(6751): warning C4013: 'pc_readreg' undefined; assuming extern returning int1>e:mightyroherctrunksrcmapscript.c(6751): warning C4013: 'search_str' undefined; assuming extern returning int1>e:mightyroherctrunksrcmapscript.c(6776): warning C4013: 'gettick' undefined; assuming extern returning int1>e:mightyroherctrunksrcmapscript.c(21232): error C2065: 'buildin_alive' : undeclared identifier1>e:mightyroherctrunksrcmapscript.c(21237): warning C4047: 'initializing' : 'bool (__cdecl *)(script_state *)' differs in levels of indirection from 'int'1>  storage.c1>  trade.c1>  unit.c1>  vending.c========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


    Thanks alot!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.