Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/21/23 in all areas

  1. Browedit 3 Browedit 3 1 - Intro Browedit 3 2 - Setup Browedit 3 3 - Height Edit Browedit 3 4 - Texture Edit Browedit 3 5 - Object Edit Browedit 3 6 - Gat Edit Browedit 3 7 - Wall Edit Browedit 3 8 - Color Edit Browedit 3 9 - Lightmap Browedit 3 10 - Minimap Browedit 3 11 - Cinematic Browedit 586 Browedit 586 1 - Basic Tutorial Ragnarok Online Map Editor *The map is available to download in Rathena, link in the video description. Subtitles in English and Portuguese. Special thanks to @Taiga (PTBR Translation) Browedit 586 2 - Basic & Intermediate Tutorial Ragnarok Online Map Editor Browedit 586 3 - Quick Tips: Navigation Browedit 586 4 - Quick Tips: Lightmaps Browedit 586 5 - Quick Tips: Mini Map
    1 point
  2. You use strcharinfo(3) which first of all returns a string, so your calculation fails and second it returns the name of the map the character is in, which sure isn't what you want. .@price = .@base_price * strcharinfo(3); *strcharinfo(<type>{,<char_id>}) This function will return either the name, party name or guild name for the invoking character. Whatever it returns is determined by type. To get the level of a character, you can simply use the BaseLevel variable, which is pre-defined by rAthena. This should do what you want: .@price = .@base_price * BaseLevel; Also, since you always need the same base price, you could move the variable to OnInit and use a NPC variable. This saves your script from having to assign the variable on every call. Probably this isn't really crucial performancewise, but it also helps to organize your script better, because you can use NPC variables globally in your NPC, you can use them anywhere you want and know they are defined. Lastly, you are writing the zeny price hard in your string. I assume because you want it to be comma separated. You can achieve this dynamically with the global F_InsertComma function. Here is an example of the script you provided, with what I mean: - script BUFF_CMD FAKE_NPC,{ OnInit: .basePrice = 5000; // ราคาพื้นฐานสำหรับการให้บัฟ bindatcmd "buff", strnpcinfo(0) + "::OnCommand"; end; OnCommand: .@price = BaseLevel * .basePrice; if ( getmapflag(strcharinfo(3), MF_PVP) || getmapflag(strcharinfo(3), MF_BATTLEGROUND) || getmapflag(strcharinfo(3), MF_GVG) ) { mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE"; close; } if ( Zeny < .@price ) { mes "ต้องใช้เงิน " + F_InsertComma(.@price) + "z. ในการกดใช้บัฟ"; close; } if ( select("บัฟเลย " + F_InsertComma(.@price) + "z ก็ไหว!","ไม่เอาดีกว่า!") == 2 ) { mes "แค่ " + F_InsertComma(.@price) + "z ก็ยัง ^FF0000งก^000000 เนอะ"; mes "ตีมอนแปปเดียวก็ได้แล้ว"; mes "ฆ่ามอนยังไงก็ได้เงินไปด้วยอยู่แล้ว"; close; } Zeny -= .@price; // บัฟที่ได้ specialeffect2(42); sc_start(SC_BLESSING, 3600000, 10); specialeffect2(37); sc_start(SC_INCREASEAGI, 3600000, 10); specialeffect2(112); sc_start(SC_KYRIE, 3600000, 10); specialeffect2(76); sc_start(SC_MAGNIFICAT, 3600000, 10); mes "จัดไป!"; mes "ขอให้มีความสุขกับการเก็บเลเวล!"; mes "ด้วยความปรารถนาดีจาก TooHard-RO!"; close; }
    1 point
  3. you can find by using a search bar
    1 point
  4. The script checks the type of the item via getiteminfo which fails. So it seems your database is wrong. No idea which rAthena version you are using, but maybe it is too old.
    1 point
  5. I think that is a request for the source mod section.
    1 point
  6. U can add this custom Src mod gut u have to Upgrade to c++ ~ Rynbef
    1 point
×
×
  • Create New...