Jump to content

Dastgir

Script Developers
  • Content Count

    3803
  • Joined

  • Last visited

  • Days Won

    249

Everything posted by Dastgir

  1. Only if somehow client sends it.
  2. That's what i am thinking , like stay at position you want npc, type some command, and choose npc name. house,0,0,5 script BED 422,{ query_sql(QUERY TO GET THE PLAYER ID WHO IS THE OWNER ,.@leader );if(.@leader!=getcharid(0)){message strcharinfo(0),"- I can't use this object.";end;} if(@H_BED==1){switch(select("- Leave Object")){case 1:set @H_BED,0; getmapxy(.@mapname$,.@mapx,.@mapy,0);query_sql( UPDATE NEW X AND Y FROM BED );}end;} switch(select("Move Object")){ case 1:break;} set @H_BED,1;npcspeed 10; do { getmapxy(.@mapname$,.@mapx,.@mapy,0); sleep2 100; getmapxy(.@mapname2$,.@map2x,.@map2y,0); if(.@mapx==.@map2x && .@map2y==.@mapy){ npcstop; }else{ npcwalkto .@mapx-1,.@mapy; } } while (@H_BED == 1 && .@mapname2$==.@mapname$); end;} end;} we have the system already ready, we are just discussing npc benefits.
  3. So it's like, in game npc prompts you to go to web, web will give you code, and you enter it ingame? Definately, I would stop playing if that's happening, its frustating to open web browser and do several steps to just play.
  4. That's what i am thinking , like stay at position you want npc, type some command, and choose npc name.
  5. Something like this ? : https://raw.githubusercontent.com/HerculesWS/Hercules/master/doc/sample/npc_trader_sample.txt /* custom npc trader */prontera,153,152,1 trader TestCustom2 4_F_EDEN_OFFICER,{ OnInit: tradertype(NST_CUSTOM); sellitem Red_Potion,2; end;/* allows currency to be item 501 and 502 */OnCountFunds: setcurrency(countitem(Red_Potion),countitem(Orange_Potion)); end;/* receives @price (total cost) and @points (the secondary input field for cash windows) */OnPayFunds: dispbottom "Hi: price="+@price+" and points="+@points; if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @price-@points ) end; delitem Orange_Potion,@points; delitem Red_Potion,@price-@points; purchaseok(); end;}
  6. Great thing, I was too thinking of something like this, but I was too occupied with something else..
  7. Card drops are on Drops: list We don't need custom Card field
  8. Checked via my GRF, that model @@Litro told is no where in data.grf /rdata.grf so there's some probablity either mapper have made custom model, or used some other official server models, which kRO don't have.
  9. I moved the server...Problem is time... The testing phase is remaining which should vanish off as many bugs (if there are any)
  10. Ohh that file is not needed, I went through several iterations for this plugin, and forget to remove those include files.. About item charm, I will include it soon..
  11. I guess there's a patch in NEMO called as Enable License Screen or something like that..
  12. As I told, it won't work with old Hercules. that errors means you are having old hercules, new hercules have 1 extra argument in getcell. What I do is Properties->C/C++->General->Treat Warnings as Errors->FALSE Properties->C/C++->General->Warning Level->Level2
  13. Invek doesn't exist, also maps are case sensitive so check exact map name. set .town,rand(11); setarray $@mapinvasion$[0],"invek"; But only 1 map is defined. Change the town to .town = 0;
  14. It's status.c I believe(else skill.c/battle.c) one of these 3, that's complete, just find and add that one line
  15. Not glitched.Each new version uploaded requires approval, once approved, they are available to users. Edit: Approved the Download
  16. git commit -am"commit message for your changes" git pull Merge conflicts by hand if any. In above case you have created new branch named myfolder. Git checkout master ^ will bring back to.master Branch
  17. Step 1: remove [] and change to your username and password as mentioned in map-server.conf and char-server.conf(be sure to don't have it as s1/p1) Step 3: VPS IP Step 5: THE IP can be either 127.0.0.1 or localhost, If your SQL is on same VPS. Error: try above steps and try to run again by commands ./configure make clean make all ./athena-start start Because currently it seems to go to some loop and trying to allocate infinite memory, which makes server fail.
  18. No, you need Hercules which is not old than 1 month.
  19. Possibly, any Hercules which is not older than 1 month, since there was plugin change recently, and its according to that change.
  20. mysql -u root -prootpassword hercules1234_rag < main. Wiki will be updated soon, seems someone edited just like that, without checking previous db name
  21. Execute this service mysqld startYour MySQL seems to be down, above command will start it.
  22. Dastgir

    error

    specialeffect "effect 501"; Syntax error Should be specialeffect 501;
×
×
  • Create New...

Important Information

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