Jump to content

Nickelodeon

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by Nickelodeon

  1. prontera,154,171,5	script	Investor	100,{
    	.@price$ = "#CASHPOINTS";
    	.@cost = 10;
    	.@bmax = 99;
    	.@jmax = 50;
    	if(	compare(jobname(Class),"Mechanic")
    	&&	BaseLevel == .@bmax 
    	&&	JobLevel == .@jmax					) {
    		mes "[ Investor ]";
    		mes "So would you like to invest in this big project I'm working on?";
    		mes "It'll cost you 10 cash points!";
    		next;
    		if(select("Yes:No")==1) {
    			if(getd(.@price$)>=.@cost) {
    				investment++;
    				.@i = investment;
    				setd(.@price$,getd(.@price$)-.@cost);
    				callfunc( "package_func",
    					929,	20,		50, //Immortal Heart
    					970,	20,		50, //Alcohol
    					909,	100,		100, //Jellopy
    					7444,	5,		20, //Treasure Box
    					603,	1,		1*.@i, //Old Blue Box
    					4047,	1,		1 //Ghostring Card
    				);
    				mes "[ Investor ]";
    				mes "Congratulations, but maybe next time you'll get something even better!";
    			} else {
    				mes "[ Investor ]";
    				mes "It seems you don't have enough cash points better luck next time.";
    			}
    			close;
    		}
    		mes "[ Investor ]";
    		mes "Alright, maybe next time.";
    	} else {
    		mes "[ Investor ]";
    		mes "I don't have time for you!";
    	}
    	close;
    }
    
    /// callfunc("package_func",<itemid>,<amount>,<chance>{,<itemid>,<amount>,<chance>{,<itemid>,<amount>,<chance>{,...},<accountid>}})
    
    function	script	package_func	{
    	set .@len, getargcount()-((getarg(getargcount()-1)>=2000000)?1:0);
    	set .@id, ((getarg(getargcount()-1)>=2000000)?getarg(getargcount()-1):getcharid(3));
    	while(set(.@i,.@i+3)-3<.@len)
    		if(rand(101)<=getarg(.@i-1))
    			getitem(set(@package_item[++.@a-1],getarg(.@i-3)),set(@package_amount[.@a-1],getarg(.@i-2)),.@id);
    	return .@a;
    }
    

     

    oh its working now.. thank a lot +1

  2. The player can get random item from investor. Player need pay certain zeny or cash point (give more chance to get old blue box) each deal with this npc. Player also need to be mechanic class and require Max Base level and job level to make this npc talk to player. Other job cannot talk with this npc. this npc are repeatable.

     

    menu

     

    "thanks for donating me"

    "here your reward"

     

     

    immortal heart 20ea - 50%

    alcohol 20ea - 50%

    Jelopy 100ea - 100%

    treasure box 5ea - 20%

    old blue box 1ea - 1%

    ghostring card 1ea - 1%

     

    p/s : npc will announce who had each reward

  3. i have install rathena last month. but i saw new update in item_db.sql . how to update mine my old item_db.sql in database into latest one?? got method using linux command or need add it manually? if manually can link me for guide to add it up?? /ok

  4. but im using lub files. it wrote like this.

    LuaP ¶ “hçõ}A& @lua files\skillinfoz\skillinfo_f.lua * * Q Q d d x x ™ ™ ¥ ¥ ¶ ¶ Å Å ë ë þ þ GetInheritJob All_NeedSkillList CheckNeedSkillList SetNeedSkillList

    GetSkillInfo AddNeedSkillList InitSkillTreeView GetSkillIdName

    GetSkillName IsLevelUseSkill GetLevelUseSpAmount GetSkillDescript TestFile GetSkillAttackRange

    job i JobInheritTable ð? JOB_INHERIT_LIST €

    Õ> T € € € L¿ € Õ> þ € 0 ! ! # $ $ $ $ & ) ) *

    skillInfo / skillDepth / depth - idx ) All_NeedSkillList ð? t_skillInfo @ 0 Õ>T

    € Õ> Ô € T€ Á † Æ Ô€ F?F? U T€ V T € Æ?Æ? V ” € † €€ L¿ † Æ X ù L? †€X€Tö € -

    F . . / / / 0 1 2 2 3 3 3 3 4 4 5 5 5 5 6 8 8 8 9 : ; 3 < ? ? ? @ B B C C C C D D D D D D D E F F F F G G G G I I I I I K K K K L L L L C M Q SKID E depth E

    skillInfo E bIsNeedSkillList E needSkillList E (for generator)

    (for state)

    j

    k

    jobID (for generator) & E (for state) & E idx & E skill & E listSize . C SKILL_INFO_LIST nill NeedSkillList pairs JobInheritTable JOB_INHERIT_LIST2 ð? ð¿ _NeedSkillList CheckNeedSkillList All_NeedSkillList

    getTableSize SetNeedSkillList F E Õ Ô€ ?U?”€ E Y€… ‚ •À” € U¿ € €

    U?” € € T € ] ü U € Æ@U?”€ Y€…

    € ™€

    •‚ T€ Á

    F

    U? Ô €

    É‚

    € E

    F€™

    F

    LÀ ‚

    F@LÀ Y€

    ] ø € T

    # U U V V W W X X X Y Z [ \ ] ] ] ] ] ] ^ ` ` ` ` a a a a a c c c c c d SKID "

    skillInfo " strSkillID

    strSkillName MaxLv UserUpgradable

    All_NeedSkillList SKILL_INFO_LIST nill ð?

    SkillName MaxLv Type Quest Soul SetNeedSkillList ð¿ # €

    E € … •€ Ô€ F¿ †¿ Æ¿ Á À U@” € À •@ € A … A Y€ € € €Á Á €€ g & h h h i j k l l l l m n n n n o o q q q q q q q r s s s s m m m u j j j j x SKID % depth % idx ! All_NeedSkillList ð?

    skillInfo @ c_AddNeedSkillList & Õ¾ T€ Ô€ Á F€†€ T€ Æ¿Õ¾ T € ¿… F¿ Æ?Y L? F€†€ X€”ú L¿ F X Ô÷ € { # | | } } ~ € ‚ ‚ ƒ ƒ ƒ „ „ „ „ … … … … … … … … † † † ˆ Š € €

    jobID " arrayNum "

    skillList " skillPos " listSize " skillID

    strSkillID

    strSkillName MaxLv UserUpgradable SKILL_TREEVIEW_FOR_JOB

    getTableSize

    GetSkillInfo c_AddSkillList AddNeedSkillList ð? # Õ>T€ Å ™ ”€ Æ Õ¾”€ €YÕ>€ Õ?”€ …

    € €

    € €Y€

    Å

    €Y

    @ŒÀ~”ù €

    ‘ ‘ ’ ’ “ “ “ • • – ˜ ˜ ™ SkillID obj SKILL_INFO_LIST ð?

    € Õ¾ ” € ?Õ¾ € Á € œ

    ž ž Ÿ Ÿ Ÿ ¡ ¡ ¢ ¤ ¤ ¥ SkillID obj SKILL_INFO_LIST

    SkillName

    € Õ¾ ” € ?Õ¾ € Á € ¨ © © ª « « ¬ ­ ­ ® ° ± ± ² ² µ µ ¶ SkillID

    skillInfo rst spAmount

    SKILL_INFO_LIST bSeperateLv SpAmount € Õ¾ € ¿ Õ> € F¿ Õ¾T € € € ¹ º º » » ¼ ¼ ¼ ¾ ¾ ¿ ¿ ¿ ¿ Á Á Â Ä Ä Å SkillID idx obj SKILL_INFO_LIST SpAmount Õ>” € €¿Õ>Ô € €¿F€Õ> € Á € È _ É Ê Ê Ë Ë Ì Ì Ì Ì Í Í Í Í Í Í Í Í Î Î Ï Ï Ï Ð Ð Ð Ñ Ñ Ñ Ñ Ñ Ñ Ñ Ñ Ò Ò Ó Ó Ó Ó Ó Ó Ó Ó Ó Ó Ô Ö Ö Ö × × × × Ø Ø Ø Ø Ø Ø Ø Ø Ù Ù Ù Ù Ù Ù Ù Ù Ú Ú Ú Û × Ü Ý ß ß à â â ä ä ä ä å å å æ æ æ Ì ç ê ë JobID ^ SKID ^

    bChangeColor ^ descript ^ obj ^ (for generator) ] (for state) ] i ] v ] temp - . (for generator) 5 K (for state) 5 K j 5 K k 5 K SKILL_DESCRIPT pairs s_pos f_pos string find MsgStrID MSI_SKILL_REQUIREMENTS

    bCopyText ð? subStr sub ^FF1493 @ ð¿ JobInheritTable format %d

    _ E F ?Ô€ Å Y^€… FÀ

    ÆÀÙ€ G

    ‡ ¿€ MÁ … ÆÁ

    Á MA™ UA ”€

    … ÆÁ

    ™ Ó‚ € V‚‚ ”€ Å E

    Y Þ€

    … CÁ ™€•ƒ Ô€ €

    … ÆA ™ “ƒ €

    “ƒÔ€ ] Tú € € ‡ T € € ‡ … €

    •‚ T€ €

    “‚ €

    “‚] Ôê € î 1 ï ï ï ï ï ï ð ð ð ð ð ð ñ ò ó ô ô ô ô õ ö ö ö ö ö ö ö ö ö ö ö ÷ ø ø ø ø õ õ õ ú ò ò ò ò ý ý ý ý þ

    saveFileName 0 depth

    , idx ( saveFile io open w All_NeedSkillList ð?

    skillInfo write string format [%d,%d]

    @ close 1 E ¿ Á ™€ •¿ ”€ E •¿ Ô€ T€ Á E F€†€ Ô€ ËÀ… FÁ FÀ ÆA Y L@E F€†€ X€û LÀ E F X Tø E  Y € %

    in_SKID $ in_Level $ attackRange $ attackRangeOfMaxLv $ maxLv $ obj $ ð? SKILL_INFO_LIST AttackRange MaxLv % A A … €U¿T€ … †?… Æ?U¿Ô € … †?F U?Ô € … †?U¿ € A U?” € €€ €€€ "

    G b ‡ ¢ Ç â " G b ‡ ¢ Ç â " G b ‡ ¢ Ç â " G €

    bump

  5. recently i try rent a cart from kafra. but the cart no seeing and i try rent back then npc said you already a cart. how to solve this problem. i already search at forum got a solution. but i didn't understand how to solved it. /hum

  6. when import the sql phpadmin, kinda this come out , is this error?? or what??

    #Database: ragnarok

    #Table: picklog

    CREATE TABLE `picklog` (

    `id` int(11) NOT NULL auto_increment,

    `time` datetime NOT NULL default '0000-00-00 00:00:00',

    `char_id` int(11) NOT NULL default '0',

    `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL default 'P',

    `nameid` int(11) NOT NULL default '0',

    `amount` int(11) NOT NULL default '1',

    `refine` tinyint(3) unsigned NOT NULL default '0',

    `card0` int(11) NOT NULL default '0',

    `[...]

  7. can tell me how to reinstall flux cp? i mean if i need to upload again all data of FreeFluxcp is anoying.

    jaypee, this is my critical error after installing this cp

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Flux_Error

    Message: MySQL error (SQLSTATE: 42S02, ERROR: 1146): Table 'dedi108cp.ipbanlist' doesn't exist

    File: /home/dedi108/web|0938912/lib/Flux/Connection/Statement.php:27 File Line Function/Method /home/dedi108/web|0938912/lib/Flux/LoginServer.php 533 Flux_Connection_Statement::execute() /home/dedi108/web|0938912/lib/Flux/SessionData.php 262 Flux_LoginServer::isIpBanned() /home/dedi108/web|0938912/modules/account/login.php 19 Flux_SessionData::login() /home/dedi108/web|0938912/lib/Flux/Template.php 337 include() /home/dedi108/web|0938912/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/dedi108/web|0938912/index.php 174 Flux_Dispatcher::dispatch()

    Exception Trace As String

    #0 /home/dedi108/web|0938912/lib/Flux/LoginServer.php(533): Flux_Connection_Statement->execute(Array)

    #1 /home/dedi108/web|0938912/lib/Flux/SessionData.php(262): Flux_LoginServer->isIpBanned()

    #2 /home/dedi108/web|0938912/modules/account/login.php(19): Flux_SessionData->login('OneWorld Ragnar...', '', '', NULL)

    #3 /home/dedi108/web|0938912/lib/Flux/Template.php(337): include('/home/dedi108/w...')

    #4 /home/dedi108/web|0938912/lib/Flux/Dispatcher.php(168): Flux_Template->render()

    #5 /home/dedi108/web|0938912/index.php(174): Flux_Dispatcher->dispatch(Array)

    #6 {main}

×
×
  • Create New...