Jump to content

SlashGeeGee

Members
  • Content Count

    52
  • Joined

  • Last visited

Posts posted by SlashGeeGee


  1. Here you go: http://upaste.me/8bfd59863044c49a

     

    This leaves me with a feeling of having broken something but I can't find nothing, so please tell me if I really did. I have no console for testing right now. Tell me if it works properly

     

    Please, edit yourself all references to the rest of armors this NPC supposedly enchanted. I've left it up to you since I have other things to do and time is tight on me.

     

    Edit: if this is correct, which post do I mark as solved? This one or the other NPC modification?

     

    Thanks ! I'll test it right now. and later i'll mark the better one. :D

     

    SlashGeeGee


  2. @@SlashGeeGee: No, that's the name of the equip position you're looking into (see 'getequipisequiped' script command and reference for script positions to 'getequipid'). Actual equipment is taken on the loop. Since position 4 is for weapons and this script doesn't do anything to weapons, they're skipped. You'll never see that Invalid in your NPC at execution.

     

    Modifications are quite different if you make this enchanter work only on upper headgear or work on upper, mid and low headgears independently. What do you exactly want? If you only want Upper headgear I can take the loop out.

     

     

    P.S.: It seems I'm starting to expertise in this script :D

     

    Please take out the loop that is my final request that only upper headgear can be enchanted. thanks :D

     

     

    SlashGeeGee


  3. My previous explanation didn't really explain why when you select 2nd slot it got third one, but I've just found the little mistake on Kenedos script and fixed it. A misspelt variable: he was using .@slotnum instead of .@slot_num (see my third codebox: it was there and I didn't even notice it!).

     

    Menu now makes the user select whether they want 2nd, 3rd or 4th slot of the armor. This way it's easier for them to understand what slot to compound. Note I've also reversed the order of the zeny cost of the enchantments and its chance, so prices and chances for 2nd slot are now those the enchanter asked for 3rd slot; same with 3rd now slot to 2nd old slot and 4th to now 1st.

     

    Here you go:

     

    attachicon.gifArmor craftsman2.txt

     

     

    It may be enlightening for your scripting abilities to compare them side-by-side and check what modifications I made, they're very basic ones.

     

    Please, test this thoroughly in your home server before using elsewhere as I may be mistaken too. Also, tell me if it works too.

     

    thank you very much sir. I jus tested in my home server right now and it's working fine now. If I want the enchantment to be limited toheadgear's only. i'll change this

     

    setarray .@position$[1], "Headgear","Armor","Shield","Invalid","Garment","Footgear";

     

    to this right ?

     

    setarray .@position$[1], "Headgear","Invalid";

     

    and what does this "Invalid" mean ? I tested the whole script but I got nothing about this "Invalid" stuff.

     

     

    SlashGeeGee


  4. This script is enormous and it kinda confused me first time I tried to review it, but after looking through it for quite a lot of time, it seems that Kenedos counted the slots backwards, don't know what made him decide this. This confirms what you stated in your first post.

     

    See these pieces of code:

    		// Selecting Slots		L_SelectSlot:		set .@slot_num, 0;		set .@slot_num, select("1st Slot:2nd Slot:3rd Slot");		if ((.@slot_num <= 0) || (.@slot_num > 3)) {			mes "["+strnpcinfo(1)+"]";			mes "Sorry but you must select a valid slot number.";			close;		}

     

    set .@equip_cardid, getequipcardid(.@part,(4 - .@slot_num)); // 4 - number of slot selected

     

    mes "^0000FFSlot Number^000000 = "+( (.@slot_num == 1) ? "1st Slot" : (.@slotnum == 2 ? "2nd Slot" : "3rd Slot") );

    WHAT? He first counts backwards then he changes to count forward? 1st slot is the last one for him.

     

    				if (.@slot_num == 1)					getitem2 .@itemid, 1, 1, .@refine, 0, .@cardid[0], .@cardid[1], .@cardid[2], .@rand_bonus;				else if (.@slot_num == 2)					getitem2 .@itemid, 1, 1, .@refine, 0, .@cardid[0], .@cardid[1], .@rand_bonus, .@cardid[3];				else if (.@slot_num == 3)					getitem2 .@itemid, 1, 1, .@refine, 0, .@cardid[0], .@rand_bonus, .@cardid[2], .@cardid[3];

    Note: .@rand_bonus is the bonus you previously selected.

     

    Hey, beware of the other enchantment method just after this one, fixing it is identical but you have to edit some more lines. And those comments are mine, don't try to find them

     

    I'll try to fix it if you want, but if you know a bit of scripting you have what you need in order to fix it yourself in these code boxes. This could be an interesting exercise for you if you want to learn/apply a bit of scripting knowledge.

     

    If not, I don't mind to fix this myself. Well, in fact this wouldn't be a fix but a partial amendment.

     

    Thanks for reviewing the script. I don't understand what you mean I only have a bit of scripting knowledge. Can you fix it ?

     

    thank you in advance :D

     

    SlashGeeGee


  5. still use langtype 7.

     

    add this in your clientinfo

        <passwordencrypt />

     

    Sample :

    <?xml version="1.0" encoding="euc-kr" ?><clientinfo>	<desc>Ragnarok Client Information</desc>	<servicetype>korea</servicetype>	<servertype>sakray</servertype>	<passwordencrypt />	<connection>		<display>SERVER NAME HERE</display>		<desc>Ragnarok Online</desc>		<balloon>this is a tool tip</balloon>		<address>SERVER IP HERE</address>		<port>6900</port>		<version>20</version>		<langtype>7</langtype>		<registrationweb>REGISTRATION URL HERE</registrationweb>		<yellow>			<admin>2000001</admin>		</yellow>		<loading>			<image>loading00.jpg</image>			<image>loading01.jpg</image>		</loading>	</connection></clientinfo>

     

    SlashGeeGee


  6. Hi Hercules !

    I've had a copy of Kenedo's Custom Enchantment System which I got from rA. Everything works fine. but there are quite a few mistakes I have seen.

     

    Well , here it is :

     

    1.When I choose 2nd Slot the display on the Slot Number before confirmation is 3rd Slot.
    2.When I choose 1st Slot the display is correct but when I go to my equipment it is enchanted in the 3rd Slot.
    3. Vice Versa of Bug No. 2
     
    Here's the script I'm using : http://upaste.me/31905933c4a6bebe

    Since rA is down. Can someone help me from Hercules ?
     
    Thanks in Advance !  :meow: 


    SlashGeeGee

  7.  

     

    Hi Judas !

     

    is the navigation system at the mini-map for RagexeRE clients only ? because I tested using this clientinfo for Ragexe client.

     

    <servicetype>uae</servicetype><servertype>primary</servertype>

     

    when I click a icon in the mini-map the navigation system. don't work. but when using this for clientinfo

     <servicetype>korea</servicetype><servertype>sakray</servertype>

     

    the navigation system works.

     

     

    SlashGeeGee

    what do you mean? the red arrow?

    if you are using the Ragexe before themida. you should use the <servicetype>korea</servicetype> to make it work.

     

     

    i'm using 2012-04-10ragexe. but changing the servicetype to korea still doesn't work. i need to change servertype to sakray for the red arrow to work.

     

    here's my clientinfo:

     

     <?xml version="1.0" encoding="euc-kr" ?><clientinfo><servicetype>korea</servicetype><servertype>primary</servertype><passwordencrypt />   <connection>      <display>Test Ragnarok Online</display>      <balloon>Free-TO-Play</balloon>      <desc>Test Ragnarok Online</desc>      <address>127.0.0.1</address>      <port>6900</port>      <version>28</version>      <langtype>7</langtype>      <registrationweb>flux.domain.com</registrationweb>        <aid>            <admin>2000000</admin>        </aid>        <loading>            <image>loadingscreen01.jpg</image>			<image>loadingscreen02.jpg</image>        </loading>   </connection></clientinfo>

     

    SlashGeeGee


  8. Hi Judas !

    is the navigation system at the mini-map for RagexeRE clients only ? because I tested using this clientinfo for Ragexe client.

     

    <servicetype>uae</servicetype><servertype>primary</servertype>

     

    when I click a icon in the mini-map the navigation system. don't work. but when using this for clientinfo

     <servicetype>korea</servicetype><servertype>sakray</servertype>


    the navigation system works.


    SlashGeeGee
×
×
  • Create New...

Important Information

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