CyberDevil

Members
  • Content Count

    195
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

26 Excellent

About CyberDevil

  • Rank
    Poporing
  • Birthday 10/03/1975

Profile Information

  • Gender
    Male
  • Location
    Rome
  • Server
    INFINITY 2.0
  • Github
    CyberDevil75
  • Interests
    Harley-Davidson and Beer!

Contact Methods

Recent Profile Visitors

656 profile views
  1. Tnx @Naruto... this is my last version live in my server with all check that you say and a double menu... 1 for male without Wanderer and Oboro and 1 for female without Ministrel and Kagerou: prontera,153,176,4 script JobMaster Fato Turchino 617,{ if (#Fato_Turchino == 1) { mes "[ Fato Turchino ]"; mes "Ehi Tesoruccio, non provarci... già ti ho fatto il \"servizietto\" che cerchi!"; mes "Ricorda, posso fare questa magia ^FF0000solo una volta^000000!"; end; } mes "[ Fato Turchino ]"; mes "Ciao Tesoruccio, sono Fato Turchino... quello magico dei fratelli \"Fato\"!"; mes "Se sei da me vuol dire che hai uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> e per questo potrò farti dono di una Classe Transcendent a tua scelta e farti livellare fino al livello 99 senza perdere tempo ad expare!"; mes "Ma ^FF0000solo una volta^000000 potrò fare questa magia per te!"; emotion ET_CHUP; next; if (countitem(7690) >=1 && Class == JOB_NOVICE && !#Fato_Turchino ) { mes "[ Fato Turchino ]"; mes "Bene, vedo che sei un giovane Novice ed hai"; mes "uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> come richiesto!"; mes "Ricorda che posso fare questa magia ^FF0000solo una volta^000000... ora tocca a te, che classe Transcendent vuoi diventare?"; emotion ET_OK; next; if(sex) { switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou")) { case 1: jobchange JOB_RUNE_KNIGHT_T; break; case 2: jobchange JOB_WARLOCK_T; break; case 3: jobchange JOB_RANGER_T; break; case 4: jobchange JOB_ARCH_BISHOP_T; break; case 5: jobchange JOB_MECHANIC_T; break; case 6: jobchange JOB_GUILLOTINE_CROSS_T; break; case 7: jobchange JOB_ROYAL_GUARD_T; break; case 8: jobchange JOB_SORCERER_T; break; case 9: jobchange JOB_MINSTREL_T; break; case 10: jobchange JOB_SURA_T; break; case 11: jobchange JOB_GENETIC_T; break; case 12: jobchange JOB_SHADOW_CHASER_T; break; case 13: jobchange JOB_REBELLION; break; case 14: jobchange JOB_KAGEROU; break; } } else { switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Oboro")) { case 1: jobchange JOB_RUNE_KNIGHT_T; break; case 2: jobchange JOB_WARLOCK_T; break; case 3: jobchange JOB_RANGER_T; break; case 4: jobchange JOB_ARCH_BISHOP_T; break; case 5: jobchange JOB_MECHANIC_T; break; case 6: jobchange JOB_GUILLOTINE_CROSS_T; break; case 7: jobchange JOB_ROYAL_GUARD_T; break; case 8: jobchange JOB_SORCERER_T; break; case 9: jobchange JOB_WANDERER_T; break; case 10: jobchange JOB_SURA_T; break; case 11: jobchange JOB_GENETIC_T; break; case 12: jobchange JOB_SHADOW_CHASER_T; break; case 13: jobchange JOB_REBELLION; break; case 14: jobchange JOB_OBORO; break; } } delitem 7690,1; set #Fato_Turchino, 1; set Baselevel,Baselevel=99; set Joblevel,Joblevel=1; mes "[ Fato Turchino ]"; mes "Eccoti accontentato, spero che il mio \"servizietto\" sia stato di tuo gradimento!!!"; emotion ET_SEXY; next; mes "[ Fato Turchino ]"; mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!"; emotion ET_THANKS; close; } mes "[ Fato Turchino ]"; mes "Ma Tesoruccio che combini? Posso offrire i miei \"servizietti\" solo ai Novice che hanno con loro uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> e che ^FF0000non hanno mai usufruito dei miei \"servizietti\"^000000 in passato, perchè posso fare questa magia solo una volta!!!!"; mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)"; emotion ET_SWEAT; end; } Tnx a lot for the support and suggestions!
  2. ok i also found the informations to create an account-level variable to use this NPC only for 1 character per account... if someone has any suggestions to improve it, this is the code: sec_in01,173,97,4 script Fato Turchino 617,{ mes "[Fato Turchino]"; mes "Ciao Tesoruccio, sono il tuo Fato Turchino personale... se sei"; mes "arrivato fino a me vuol dire che sei in possesso dell'oggetto dei miei desideri, e per questo potrò farti dono di una Classe"; mes "Transcendent a tua scelta e farti livellare fino al livello 99 senza perdere tempo ad expare!"; emotion ET_CHUP; next; if (countitem(501) >=1 && Class == JOB_NOVICE && !#Fato_Turchino ) { mes "Bene, vedo che sei un giovane Novice ed hai l'oggetto che cercavo come richiesto..."; mes "ora tocca a te, che classe Transcendent vuoi diventare?"; emotion ET_OK; next; switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou:Oboro")) { case 1: jobchange JOB_RUNE_KNIGHT_T; break; case 2: jobchange JOB_WARLOCK_T; break; case 3: jobchange JOB_RANGER_T; break; case 4: jobchange JOB_ARCH_BISHOP_T; break; case 5: jobchange JOB_MECHANIC_T; break; case 6: jobchange JOB_GUILLOTINE_CROSS_T; break; case 7: jobchange JOB_ROYAL_GUARD_T; break; case 8: jobchange JOB_SORCERER_T; break; case 9: jobchange JOB_MINSTREL_T; break; case 10: jobchange JOB_WANDERER_T; break; case 11: jobchange JOB_SURA_T; break; case 12: jobchange JOB_GENETIC_T; break; case 13: jobchange JOB_SHADOW_CHASER_T; break; case 14: jobchange JOB_REBELLION; break; case 15: jobchange JOB_KAGEROU; break; case 16: jobchange JOB_OBORO; break; } delitem 501,1; set #Fato_Turchino, 1; set Baselevel,Baselevel=99; set Joblevel,Joblevel=1; mes "Eccoti accontentato, spero che il mio 'servizietto' sia stato di tuo gradimento!!!"; emotion ET_SEXY; next; mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!"; emotion ET_THANKS; close; } mes "Ma Tesoruccio che combini? Posso offrire i miei 'servizietti' solo ai Novice che hanno con loro l'oggetto dei miei desideri!!!"; mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)"; emotion ET_SWEAT; end; }
  3. Thanks for the suggestion... I created the script (sorry for the dialogues in Italian language) and it works perfectly, but I remembered now that this possibility to change from Novice to a Trascendet Class must be possible only once per account. Any other suggestions for using and set a #key and value 0/1 in acc_reg_num? sec_in01,173,97,4 script Fato Turchino 617,{ mes "[Fato Turchino]"; mes "Ciao Tesoruccio, sono il tuo Fato Turchino personale... se sei"; mes "arrivato fino a me vuol dire che sei in possesso dell'oggetto dei miei desideri, e per questo potrò farti dono di una Classe"; mes "Transcendent a tua scelta e farti livellare fino al livello 99 senza perdite di tempo ad expare!"; emotion ET_CHUP; next; if (countitem(501) >=1 && Class == JOB_NOVICE ) { mes "Bene, vedo che sei un giovane Novice ed hai l'oggetto che cercavo come richiesto..."; mes "ora tocca a te, che classe Transcendent vuoi diventare?"; emotion ET_OK; next; switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou:Oboro")) { case 1: jobchange JOB_RUNE_KNIGHT_T; break; case 2: jobchange JOB_WARLOCK_T; break; case 3: jobchange JOB_RANGER_T; break; case 4: jobchange JOB_ARCH_BISHOP_T; break; case 5: jobchange JOB_MECHANIC_T; break; case 6: jobchange JOB_GUILLOTINE_CROSS_T; break; case 7: jobchange JOB_ROYAL_GUARD_T; break; case 8: jobchange JOB_SORCERER_T; break; case 9: jobchange JOB_MINSTREL_T; break; case 10: jobchange JOB_WANDERER_T; break; case 11: jobchange JOB_SURA_T; break; case 12: jobchange JOB_GENETIC_T; break; case 13: jobchange JOB_SHADOW_CHASER_T; break; case 14: jobchange JOB_REBELLION; break; case 15: jobchange JOB_KAGEROU; break; case 16: jobchange JOB_OBORO; break; } delitem 501,1; set Baselevel,Baselevel=99; set Joblevel,Joblevel=1; mes "Eccoti accontentato, spero che il mio 'servizietto' sia stato di tuo gradimento!!!"; emotion ET_SEXY; next; mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!"; emotion ET_THANKS; close; } mes "Ma Tesoruccio che combini? Posso offrire i miei 'servizietti' solo ai Novice che hanno con loro l'oggetto dei miei desideri!!!"; mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)"; emotion ET_SWEAT; end; }
  4. I only need it as a starting point... in reality the question will be more complex, the idea is to create an advertising campaign by spreading a "gift code", new registered users will be able to insert this code and receive an item (ex. a Red Potion! lol), and by giving this item to the npc I requested in this topic, they can exchange it for a transcendent class and level 99/1... it's all about marketing!
  5. Someone can help me make a simple "job changer" that for example lets you choose a transcendent class if: 1) you have a red potion (ID 501) 2) you are a Novice of any level (no super novice, no 1st/2nd/etc classes) ...and after these 2 requirements and after choosing the transcendet class, it removes the red potion, it change your class with that choice trascendend class and gives you the basic level at 99 and job level at 1 (99/1). It sounds simple but I really don't know where to start !!!
  6. ah ... I didn't know, great ... thanks for the tip!
  7. I have fixed the instant respawn of the Wizard (ID 3764)... REPLACE: OnSummonWizard: monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard"; end; WITH: OnSummonWizard: addtimer 60000, strnpcinfo(3) + "::On60secs"; end; On60secs: monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard"; end; ...change "addtimer 60000" (are 60 seconds) with all seconds you need! p.s.: it's correct "strnpcinfo(3)" or "strnpcinfo(0)" in the addtimer command???
  8. I found on the web this very useful program to be able to compare 2 GRFs of kro and for example have a list of the only missing files to be able to make a client patch. The problem is that this program is all in Chinese... do you think it is possible to translate it via its DLL and using Google Translator? GrfCompare.rar
  9. Yes exactly, but I have already verified that it is not technically possible to do this, so I found a good solution (not very secure but working)... I created a symbolic link from the custom NPC folder (in rAthena) to a .txt file in an accessible folder via the web (under my url site). Then I created a simple FluxCP add-on accessible only to ADMIN where it is a simple PHP code for reading and editing the .txt file in a textarea field, similar to this one: <?php if($_POST['Submit']){ $open = fopen("npc.txt","w+"); $text = $_POST['update']; fwrite($open, $text); fclose($open); echo "File updated.<br />"; echo "File:<br />"; $file = file("npc.txt"); foreach($file as $text) { echo $text."<br />"; } }else{ $file = file("npc.txt"); echo "<form action=\"".$PHP_SELF."\" method=\"post\">"; echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">"; foreach($file as $text) { echo $text; } echo "</textarea>"; echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n </form>"; } ?> This is just an example of the code because in reality it is a bit different to be adapted to other functions of this my add-on, but basically it works like this... in fact if you try to put this php file in the same folder as the .txt file, you can still read it and edit it via web but you don't have any authentication and anyone can modify it, while under add-on you can take advantage of the FluxCP protection and authentication. Obviously, once the .txt file has been modified, the reload command must be launched.
  10. I wanted to know if it was possible to create a classic NPC vending but that takes the currency, the IDs of the items and the required cost, directly from an SQL table. For example, I have the "shop_npc" table with the fields called "currency","item1_id":"item1_cost","item2_id":"item2_cost" and so on for other items, respectively. The NPC must then have a query with variables that take the respective values in the above table, example (I apologize for the code taken at random but it is just an example) : prontera,100,100,3 itemshop SQL Shop 506, [email protected]$[[email protected]]+ , [email protected]_id$[[email protected]]+ : [email protected]_cost$[[email protected]]+ , [email protected]_id$[[email protected]]+ : [email protected]_cost$[[email protected]]; Original static code without sql function, here: prontera,100,100,3 itemshop Static Shop 506,6767,17681:5,9997:10; I don't know how to set up a script like that but it would be very interesting because I could develop a control panel via web (FluxCP/Addon) to make this NPC configurable to any GM/Admin, obviously launching the reload command in play after the table changes. Do you think this thing can be applied and do you know how to help me not being a good c++ coder? p.s.: I believe that the table creation query is like this: CREATE TABLE `shop_npc` ( `id` int(11) NOT NULL, `currency` int(11) NOT NULL, `item1_id` int(11) NOT NULL, `item1_cost` int(11) NOT NULL, `item2_id` int(11) NOT NULL, `item2_cost` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  11. - script GMLogin -1,{ OnPCLoginEvent: if(getgmlevel() > 60) { atcommand "@speed 0"; //auto speed atcommand "@hide"; //auto hide } end; } ...another question... it's possibile to have different speeds in different maps (towns)? How can I modified the script in post #1?
  12. @Easycore I had an "unhealthy" idea... in the future could we implement this exchange method also for the Buying Store System (https://irowiki.org/wiki/Buying_Store)? It would be interesting to be able to have items searched for and exchange them for other currencies than Zeny
  13. how to install it? EDIT: sorry I've see now this: https://github.com/nodecp/nodecp/wiki
  14. Notice that in the Monsters Counting don't work, clicking on the sign the window appears to insert the correct number of mushrooms (reds or blacks), but nothing happens, not even an error message in the SSH console... I have tried with any number, even spamming but the script does nothing! And the mushrooms remain in the ground even you @reloadscript!
  15. Installed yesterday on the last rAthena version (a548f20) and all work... there is only a small error in the message that appears to the merchant after selling an item and closing the store remaining online (without @autotrade), which displays the gain minus the taxes even if the tax feature has not been activated... I have however solved by modifying the text of the message with a simple "With active tax, the gain was of XYZ", but in any case immediately after this text appears in the line below the real total gain without taxes... a minimum problem!